|
Last change
on this file was
11,
checked in by David Owen <dsowen@fugue88.ws>, 9 years ago
|
|
Moved ai.py to ai-starter.py
|
|
File size:
734 bytes
|
| Line | |
|---|
| 1 | # Copy this file to ai.py and then modify ai.py with your own logic. |
|---|
| 2 | |
|---|
| 3 | import player |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | class Player(player.Player): |
|---|
| 7 | |
|---|
| 8 | def __init__(self, player_count, player_num, role): |
|---|
| 9 | super(Player, self).__init__(player_count, player_num, role) |
|---|
| 10 | |
|---|
| 11 | def reveal_spies(self, spies): |
|---|
| 12 | pass |
|---|
| 13 | |
|---|
| 14 | def propose_team(self, count): |
|---|
| 15 | return super(Player, self).propose_team(count) |
|---|
| 16 | |
|---|
| 17 | def approve_team(self, team): |
|---|
| 18 | return super(Player, self).approve_team(team) |
|---|
| 19 | |
|---|
| 20 | def observe_team_vote(self, approved, votes): |
|---|
| 21 | pass |
|---|
| 22 | |
|---|
| 23 | def perform_mission(self): |
|---|
| 24 | return super(Player, self).perform_mission() |
|---|
| 25 | |
|---|
| 26 | def observe_mission(self, success, failures): |
|---|
| 27 | pass |
|---|
| 28 | |
|---|
| 29 | def observe_game(self, success): |
|---|
| 30 | pass |
|---|
Note: See
TracBrowser
for help on using the repository browser.