Permalink
Commits on Sep 27, 2010
  1. refactored - a game is now expressible as a pure function

    you pass it winlogic, and a (player, throws) tuple where throws is a possibly
    infinite sequence of throws.  right now it's backed by prompted-for input
    from the console
    committed Sep 27, 2010
  2. refactored tests

    committed Sep 27, 2010
Commits on Sep 25, 2010
  1. prompt-for-username reads and returns username

    added these function to (rps) to pass simple gametypes
    committed Sep 25, 2010
  2. added other game tests

    committed Sep 25, 2010
  3. play a round

    committed Sep 25, 2010
  4. prompt for throw

    committed Sep 25, 2010
Commits on Feb 9, 2010
  1. PromptFor, RockPaperScissorsTest accounts for trailing newline,

    remove InteractivePlayer still hanging around
    committed Feb 9, 2010
  2. Big Refactoring

    committed Feb 9, 2010
  3. Renamed Notify to Print

    Implemented Print with PutStrTo and PutStr
    Refactored PutStrTo to use PrintStreams instead of Writers
    committed Feb 7, 2010
Commits on Feb 7, 2010
  1. Merge branch 'type_driven' - the Haskell-inspired Java

    implementation of RPS
    
    Conflicts:
    	.gitignore
    	build.xml
    	src/RockPaperScissors.java
    	src/com/twoguys/rps/Game.java
    	src/com/twoguys/rps/Player.java
    	src/com/twoguys/rps/Throw.java
    	test/com/twoguys/rps/GameTest.java
    	test/com/twoguys/rps/ThrowTest.java
    committed Feb 7, 2010
Commits on Feb 3, 2010
  1. Refactored Prompt to take a LineNumberReader instead of wrapping

    whatever stream we're given, which tends to cause problems
    committed Feb 3, 2010
Commits on Jan 31, 2010
  1. Implemented the WinLogicFactory which turns string arguments into

    a concrete WinLogic class, by far the most tedious and time-consuming
    single class to test in this application
    committed Jan 31, 2010
Commits on Jan 29, 2010
  1. Implemented an iterator that iterates over an endless stream of

    prompted-for Throws, with a bit of error checking thrown in
    committed Jan 29, 2010
  2. Implemented WinBy, which turns out to be the ultimate case, refactored

    FirstTo to extend that
    committed Jan 29, 2010
  3. Implemented FirstTo WinLogic

    committed Jan 29, 2010
  4. Implemented the PlayerPrompt

    committed Jan 29, 2010
  5. Refactored Reader class out of Prompt

    and moved Read<T> interface and TryParse into the util package
    as they're generally not related to rps
    committed Jan 29, 2010