Permalink
Switch branches/tags
Nothing to show
Commits on Sep 27, 2010
  1. refactored - a game is now expressible as a pure function

    youngnh committed Sep 27, 2010
    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
  2. refactored tests

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

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

    youngnh committed Sep 25, 2010
  3. play a round

    youngnh committed Sep 25, 2010
  4. prompt for throw

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

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

    youngnh committed Feb 9, 2010
  3. Renamed Notify to Print

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

    youngnh committed Feb 7, 2010
    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
Commits on Feb 3, 2010
  1. Refactored Prompt to take a LineNumberReader instead of wrapping

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

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

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

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

    youngnh committed Jan 29, 2010
  4. Implemented the PlayerPrompt

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

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