diff options
Diffstat (limited to 'apps/plugins/reversi/reversi-strategy.c')
-rw-r--r-- | apps/plugins/reversi/reversi-strategy.c | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/apps/plugins/reversi/reversi-strategy.c b/apps/plugins/reversi/reversi-strategy.c index 831c0cd92b..9adcbb661f 100644 --- a/apps/plugins/reversi/reversi-strategy.c +++ b/apps/plugins/reversi/reversi-strategy.c | |||
@@ -20,40 +20,8 @@ | |||
20 | #include "reversi-strategy.h" | 20 | #include "reversi-strategy.h" |
21 | #include <stddef.h> | 21 | #include <stddef.h> |
22 | 22 | ||
23 | |||
24 | /* Implementation of a rather weak player strategy */ | ||
25 | static move_t novice_move_func(const reversi_board_t *game, int color) { | ||
26 | /* TODO: Implement novice_move_func */ | ||
27 | (void)game; | ||
28 | (void)color; | ||
29 | return MOVE_INVALID; | ||
30 | } | ||
31 | |||
32 | |||
33 | /* Implementation of a good player strategy */ | ||
34 | static move_t expert_move_func(const reversi_board_t *game, int color) { | ||
35 | /* TODO: Implement expert_move_func */ | ||
36 | (void)game; | ||
37 | (void)color; | ||
38 | return MOVE_INVALID; | ||
39 | } | ||
40 | |||
41 | |||
42 | |||
43 | /* Strategy that requires interaction with the user */ | 23 | /* Strategy that requires interaction with the user */ |
44 | const game_strategy_t strategy_human = { | 24 | const game_strategy_t strategy_human = { |
45 | false, | 25 | false, |
46 | NULL | 26 | NULL |
47 | }; | 27 | }; |
48 | |||
49 | /* Robot that plays not very well (novice) */ | ||
50 | const game_strategy_t strategy_novice = { | ||
51 | true, | ||
52 | novice_move_func | ||
53 | }; | ||
54 | |||
55 | /* Robot that is hard to beat (expert) */ | ||
56 | const game_strategy_t strategy_expert = { | ||
57 | true, | ||
58 | expert_move_func | ||
59 | }; | ||