5 * Created by Daniel Axtens on 20/04/10.
6 * Licensed under an MIT-style license: see the LICENSE file for details.
12 /* Implement the angel bot, which always tells the truth
13 and expects others to do the same */
15 ATTACKTYPE Attack( char * foe_name ) {
18 attack.realAttack = RandomAttack(); /* Chooses randomly from Rock, Paper, Scissors */
19 attack.promisedAttack = attack.realAttack; /* Tells the truth for its bluff */
24 ITEMTYPE Defend( char * foeName, ITEMTYPE foePromisedAttack ) {
25 return foePromisedAttack; /* Trusts them to be going for a tie */
28 /* You need to define a results function, even if it isn't used
29 (otherwise the linker will complain) */
30 void Results( char * foeName, int isInstigatedByYou, ITEMTYPE yourItem,
31 ITEMTYPE theirItem, ITEMTYPE promisedItem) {
33 return; /* Ignore whatever just happened. */
36 /* same for Cleanup() */