Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
  • Loading branch information
hel14001 authored Dec 9, 2019
1 parent 68afa57 commit 9f3f268
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions randommoveai.py
Original file line number Diff line number Diff line change
@@ -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] )

0 comments on commit 9f3f268

Please sign in to comment.