Problem 152

Tic-Tac-Toe

Code an interactive, two-player game of Tic-Tac-Toe. You’ll use a two-dimensional array of chars.

Starter Code: TicTacToe.java

(...a game already in progress)

	X   O
	O X X
	  X O
 
'O', choose your location (row, column): 0 1

	X O O
	O X X
	  X O
 
'X', choose your location (row, column): 2 0

	X O O
	O X X
	X X O

The game is a tie.

◄ 151: Parallel Arrays 153: Hangman ►



Adapted from ProgrammingByDoing.com
©2013 Graham Mitchell

Creative Commons License
This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 3.0 United States License.