2. Game Play
• Player A serves by writing a test.
• If the test passes, Player 1 faults and the serve goes to Player B.
• If the test fails, Player B returns by implementing the code to
make the test pass.
• If refactoring is needed, Player A must perform the refactoring,
taking the point.
• If no refactoring is needed, Player B takes the point and Player
A re-serves.
3. Red Green Refactor
Serves
Player 1 Player 2
Write Test
Implement Code
Refactor
4. Red Green (no Refactor)
Serves
Player 1 Player 2
Write Test
Implement Code
5. Green (no Red or Refactor)
Serves
Player 1 Player 2
Write Test