|
For the June AEG meeting, we will be doing a Test-Driven Development (TDD) group exercise. We will program, test-first, the children's card game of War. The rules of the game are at the bottom of this page.
First we will do a quick object model on a white-board of what the solution might look like. Then we will start writing test cases, programming until they work, writing another test case, and so on. It will be interesting to compare what we develop with our original object model.
The environment will be Eclipse (Java open-source refactoring IDE) with the JUnit extension.
There is no cost to attend. Complimentary pizza and beverages will be provided by Advanced Technologies Integration, Inc. (ATI, www.atico.com).
The AEG thanks Advanced Technologies Integration, Inc. (ATI, www.atico.com) for providing pizza, refreshments, meeting space, and support. Also the AEG thanks Spherion (www.spherion.com) for the use of their projector.
The Agile Experience Group meets and collaborates to share experiences, suggestions, and ideas about moving software development efforts towards more agile, more lightweight practices. Extreme Programming (XP), SCRUM, Crystal, FDD, and ASD are agile approaches. See www.agilealliance.org
We meet in the Twin Cities, Minnesota area and are a special interest group (SIG) of the Object Technologies Users Group (OTUG). See www.otug.org.
To get meeting announcements, subscribe to our low-volume list server by sending an email to: Agile_Experience_Group-subscribe@yahoogroups.com or subscribe from the web at: http://groups.yahoo.com/group/Agile_Experience_Group/
Rules to the children's card game of War taken from: http://www.pagat.com/war/war.html
Introduction
This is a children's game played in many parts of the world. No strategy is involved - simply the ability to recognise which of two cards is higher in rank, and to follow the procedure of the game. ...
War for two players
In the basic game there are two players and you use a standard 52 card pack. Cards rank as usual from high to low: A K Q J T 9 8 7 6 5 4 3 2. Suits are ignored in this game.
Deal out all the cards, so that each player has 26. Players do not look at their cards, but keep them in a packet face down. The object of the game is to win all the cards.
Both players now turn their top card face up and put them on the table. Whoever turned the higher card takes both cards and adds them (face down) to the bottom of their packet. Then both players turn up their next card and so on.
If the turned up cards are equal there is a war. The tied cards stay on the table and both players play the next card of their pile face down and then another card face-up. Whoever has the higher of the new face-up cards wins the war and adds all six cards face-down to the bottom of their packet. If the new face-up cards are equal as well, the war continues: each player puts another card face-down and one face-up. The war goes on like this as long as the face-up cards continue to be equal. As soon as they are different the player of the higher card wins all the cards in the war.
The game continues until one player has all the cards and wins. This can take a long time. (If someone runs out of cards during a war the other player wins.)