Initial commit

This commit is contained in:
2025-08-28 04:58:26 +00:00
commit b38519b081
15 changed files with 523 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
from random import choice
class RandomStrategy:
"""A Strategy which randomly chooses a move. Not a great choice.
"""
def __init__(self, game):
self.game = game
def choose_action(self, state):
possible_actions = self.game.get_actions(state)
return choice(possible_actions)