generated from mwc/lab_tic_tac_toe
Checkpoint 3
As I worked through this lab and the video, I became more aware of the thought process that goes into tic-tac-toe. However, it was not until I saw all the reward possibilities for the initial state of the board, and then made the computer play itself that I appreciated how complex the game is and how many possibilities there are on a relatively simple board. I am also wondering when the computer plays itself, does the game always end in a tie? I suppose I could write a program for this that plays the game a set number of times and makes a list of the outcomes and then counts the wins, losses, and ties for a particular player.
This commit is contained in:
@@ -2,8 +2,8 @@ from ttt.game import TTTGame
|
||||
from ttt.view import TTTView
|
||||
from ttt.player import TTTHumanPlayer, TTTComputerPlayer
|
||||
|
||||
player0 = TTTHumanPlayer("Player 1")
|
||||
player1 = TTTHumanPlayer("Player 2")
|
||||
player0 = TTTComputerPlayer("Player 1")
|
||||
player1 = TTTComputerPlayer("Player 2")
|
||||
game = TTTGame()
|
||||
view = TTTView(player0, player1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user