Created
September 30, 2009 12:17
-
-
Save tooky/198054 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rules | |
===== | |
1. write exactly ONE failing test | |
2. make the test from (1) pass by first writing implementation code IN THE TEST | |
3. create a new implementation method/function by: | |
1. doing extract method on implementation code created as per (2), or | |
2. moving implementation code as per (2) into an existing implementation method | |
4. only ever create new methods IN THE TEST CLASS | |
5. only ever create implementation classes to provide a destination for extracting a method created as per (4). | |
6. populate implementation classes by doing move method from a test class into them | |
7. refactor as required | |
8. go to (1) | |
Requirements | |
============ | |
1. a game is over when all fields are taken | |
2. a game is over when all fields in a column are taken by a player | |
3. a game is over when all fields in a row are taken by a player | |
4. a game is over when all fields in a diagonal are taken by a player | |
5. a player can take a field if not already taken | |
6. players take turns taking fields until the game is over | |
http://code.google.com/p/openspacecode/wiki/TddAsIfYouMeantIt |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment