danielemegna / tictactoe-java-kata

A TicTacToe game TDD kata, done in Java

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tictactoe-java-kata

An unbeatable TicTacToe game TDD kata in Java

##How to play the start

After few questions, you can start with the game.

player name

The board is always displayed with the coordinate headers which can help you to orient yourself.

You can choose your next move specifying the coordinates of it with a pair (x y): x for the coordinate on the abscissa axis (horizontal), y for the one on the ordinate axis (vertical).

move

On the board the player who starts is always marked as X; the second player as O.

You can specify the coordinates using any kind of separator:

- "0 0"   -> (0 0)
- "2,1"   -> (2 1)
- "1, 0"  -> (1 0)
- "0-2"   -> (0 2)
- "20"    -> (2 0) [also with no separator]
- "1"     -> (1 1) [nice trick for twin pairs ;)]

###You won't beat me, but you can try.. :)

About

A TicTacToe game TDD kata, done in Java


Languages

Language:Java 100.0%