cs509:tictactoe_sample_1-player_game
TicTacToe: Sample 1-player game (human vs. computer)
This is a Tic Tac Toe program. Choose the type of game: (1) human o vs. human x (2) human o vs. dumb computer x -> 2 1 2 3 4 5 6 7 8 9 It's o's turn. Input the number of an empty square: (-1 to quit) 5 1 2 3 4 o 6 7 8 9 It's x's turn. 1 x 3 4 o 6 7 8 9 It's o's turn. Input the number of an empty square: (-1 to quit) 4 1 x 3 o o 6 7 8 9 It's x's turn. 1 x 3 o o 6 7 x 9 It's o's turn. Input the number of an empty square: (-1 to quit) 6 1 x 3 o o o 7 x 9 Player o is the winner.
cs509/tictactoe_sample_1-player_game.txt · Last modified: 2013/03/20 05:21 by jchung