Commits

Kevin Berridge committed 25f32d5

Added more narrative to the Readme

  • Participants
  • Parent commits c3af1d3

Comments (0)

Files changed (2)

File RockPaperScissors.Specs/Readme.txt

 1. At first I wrote "when_playing_single_game" It should_output_Ben_as_winner
 but this was too high level.  I needed to actually spec the rules of r/p/s first.
 2. So I wrote "when_playing_a_round" which forced me to introduce the concept of a round.
-3. Which led me to create the RockPaperScissors object.
+3. Which led me to create the RockPaperScissors object.
+4. Then I got all confused about how to deal with the input from the console (Can I apply MVP or MVVM to a console program?), so I decided to leave that bit for last.
+5. Then I wrote the spec for how a single round game should work, and for some reason I broke it into two seperate interfaces.
+6. Then I made all the tests pass.
+7. Then I wrote the program.cs file so I could see what the control loop should look like and decide if I should test it (I think I really should).
+8. Then it was 10pm and that's my bed time.

File RockPaperScissors/Program.cs

       List<Player> gameResults = new List<Player>();
       while ( srs.ShouldPlayAgain( gameResults ) )
       {
-        Console.Write( "[R]ock, [P]aper, or [S]cissors?" );
+        Console.Write( "[R]ock, [P]aper, or [S]cissors? " );
         ConsoleKeyInfo player1Move = Console.ReadKey();
         Console.WriteLine();
 
-        Console.Write( "[R]ock, [P]aper, or [S]cissors?" );
+        Console.Write( "[R]ock, [P]aper, or [S]cissors? " );
         ConsoleKeyInfo player2Move = Console.ReadKey();
         Console.WriteLine();