in this exercise , we will use all the functions we have written to simulate an entire games the function create_board(), random_ place ( board, player), and evaluate ( board) are all defined as in orevious exercises.
create a function play_game() that:
create a board
alternates taking turns between two players ( beginning with player1), placing a marker during each turn.
evaluates the board for a winner after each palcements
continous the game until one players wins (returning 1 or 2 to reflut the winning players),or the game is a draw (returning -1).
call play_game 1000 times, and store the results of the game in a list called result. use random.seed(1) so we can chect your answer!
how many times does player 1 win out of 1000 games?



Answer :

Other Questions