- Fork this repository
- Install Python
- Run
pip install ping-game-theory - Rename the file in submissions/ with your name and net id
- Open the Python file in your text editor
- Enter your SNU NetID in
self.author_netid - Enter your strategy name in
self.strategy_name - Describe your strategy name in
self.strategy_desc(Optional, but it helps us judge your bot.) - Write your code under
def begin(self)anddef turn(self, history: History) - When you want to submit, open a pull request to this repository (make sure that you're only committing one Python file).
Do NOT change the name of the class Bot. If you do this, your submission will be invalidated (as we look for a Bot class in your code to run). Any failure to follow the instructions above may also lead to an invalid submission.
The begin function is what defines what move your bot plays first. For now it just plays Move.COOPERATE to start with.
The turn function is what defines what move your bot performs in any turns after. History is a list of HistoryEntrys, inside which HistoryEntry.self is the move your bot played for that turn and HistoryEntry.other is the move the opponent played. For now the bot only plays Move.DEFECT.
Just run it bro.