diff --git a/randommoveai.py b/randommoveai.py new file mode 100644 index 0000000..d1171a7 --- /dev/null +++ b/randommoveai.py @@ -0,0 +1,9 @@ +import random + +class randomMoveAI: + def __init__(self, color): + self.color = color + + def move(self, state): + chosenmove = random.choice(state.generate_moves(state.board, self.color) + state.movePiece( chosenmove[0], chosenmove[1] )