diff options
Diffstat (limited to 'bots.py')
-rw-r--r-- | bots.py | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -1,5 +1,8 @@ import random +def right_bot(board, (x, y)): + return 'R' + def random_bot(board, (x, y)): height = len(board) width = len(board[0]) @@ -14,3 +17,7 @@ def random_bot(board, (x, y)): moves.append('D') return random.choice(moves) +def random_bot2(board, (x, y)): + move = random_bot(board, (x, y)) + nx, ny = x + |