5 * Created by Daniel Axtens on 20/04/10.
6 * Licensed under an MIT-style license: see the LICENSE file for details.
13 /* Implement the lucifer bot, which always lies expecting people to be good
14 and always goes for the kill */
16 ATTACKTYPE Attack( char * foe_name ) {
19 attack.realAttack = RandomAttack();
21 /* Here we choose the thing that will hurt them if they go for a tie */
22 switch (attack.realAttack) {
24 result.promisedAttack = scissors;
27 result.promisedAttack = rock;
29 default: /* attack = scissors */
30 result.promisedAttack = paper;
33 attack.promisedAttack = result.realAttack; /* Tells the truth for its bluff */
38 /* Here we trust that they are telling the truth. And we try to kill them. */
39 ITEMTYPE Defend( char * foeName, ITEMTYPE foePromisedAttack ) {
41 switch (foePromisedAttack) {
54 /* You need to define a results function, even if it isn't used
55 (otherwise the linker will complain) */
56 void Results( char * foeName, int isInstigatedByYou, ITEMTYPE yourItem,
57 ITEMTYPE theirItem, ITEMTYPE promisedItem) {
59 return; /* Ignore whatever just happened. */