Game setup
- Each computer is given a label (eg Alligators, Bears, Cheetahs, etc).
- Minimum of two people per computer.
- Each computer must have a TDD framework installed (better still, use CyberDojo).
Game play
- Every 10-15 minutes ring the Average Time To Green Bell (we found a small brass bell in a local shop).
- When you ring the bell you also start a timer and project it so everyone can see it. This timer starts at zero and increments second by second.
- The aim at each computer is then to get to green (all tests passing).
- When a computer has got to green two things have to be recorded for that computer: the iteration number, the time it took to get to green since the bell (simply look at the projected timer).
- When your computer is green you have to cover your laptop (we provided sheets of green paper) and wait till all the computers have got to green.
- The data for all computers is recorded in a spreadsheet.
- When all computers are at green everyone briefly looks at the graph made from the spreadsheet.
- Then you have to swap partners and computers and a new iteration starts.
Game Goal
The goal of the game, which was clearly and explicitly printed on the instruction sheets was simply to control the average time to green across the whole group. The group naturally didn't understand that at first - they focused instead on the problem. The problem was completely trivial - Olve and I picked stripping backslash newline pairs off a character buffer - as in C/C++ preprocessor logical lines. It was utterly fascinating to watch how things progressed, and we feel it worked really well (and more to the point I think the participants did too), both in the TDD sense and in the team building sense.
Game photos
- Graph of the average time to green over several iterations.
- Helping to solve one computer that was holding the team up.
- Total number of tests passing split by computer.
- Relaxing at the end.
Game retrospective
- The group were all well above average ability so we could have perhaps run fewer iterations, or used a less trivial problem.
- We could have used staged goals. First measure the average time to green, then lower it, then control it.
- Once the group felt they had control of the average time to green we could have let them choose their own goals.
- We could have encouraged participants to write down their choice of strategies and their experience of pair programming.
Here's a follow up blog-entry/