<gh_stars>1-10
"""The base Bot class, plays randomly."""

from src.constants import *
from src.game import Game
from random import choice
from src.utils import decarded_state

class Bot(object):

	def play_move(self, game_state, statcache):
		"""Play a random move in game."""
		move = choice(list(Game.legal_plays(game_state)))
		game_state = Game.apply_move(game_state, move)
		statcache.past_states.append(game_state)
		return move, game_state

"""The base Bot class, plays randomly."""

from src.constants import *
from src.game import Game
from random import choice
from src.utils import decarded_state

class Bot(object):

	def play_move(self, game_state, statcache):
		"""Play a random move in game."""
		move = choice(list(Game.legal_plays(game_state)))
		game_state = Game.apply_move(game_state, move)
		statcache.past_states.append(game_state)
		return move, game_state
The base Bot class, plays randomly. Play a random move in game.