Skip to content

alvarogarcia7/kata-tictactoe-java

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

75 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe Kata

We've practiced this kata at the office, pairing.

We've marked the successful sprints as "Success" and failed ones as "Failure".

Some statistics:

  • 6 failed ones
  • 10 successful ones

Kata description - Tic Tac Toe Kata

Rules

  • A game has nine fields in a 3x3 grid
  • A player can take a field if not already taken
  • A game is over when all fields in a row are taken by a player
  • A game is over when all fields in a diagonal are taken by a player
  • A game is over when all fields in a column are taken by a player
  • A game is over when all fields are taken
  • Players take turns taking fields until the game is over
  • There are two players in the game (X and O)

Credits

Inspired by Diego Lemos

Baby Steps Constraint

Steps

  • 1 Setup a git repository
  • 2 Setup a timer for 2 minutes interval when you start
  • 3 Write exactly one test
    • If the timer rings and the test is red then revert and start over.
    • If the test is green before timer rings then commit.
  • 4 Restart timer (no discussions in between timers)
  • 5 Go to 3

Credits

Inspired by Adrian Bolboaca