Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: master
Commits on Sep 27, 2010
  1. refactored - a game is now expressible as a pure function

    authored
    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

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

    authored
    added these function to (rps) to pass simple gametypes
  2. added other game tests

    authored
  3. play a round

    authored
  4. prompt for throw

    authored
Commits on Feb 9, 2010
  1. PromptFor, RockPaperScissorsTest accounts for trailing newline,

    authored
    remove InteractivePlayer still hanging around
  2. Big Refactoring

    authored
  3. Renamed Notify to Print

    authored
    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

    authored
    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

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

    authored
    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

    authored
    prompted-for Throws, with a bit of error checking thrown in
  2. Implemented FirstTo WinLogic

    authored
  3. Implemented the PlayerPrompt

    authored
  4. Refactored Reader class out of Prompt

    authored
    and moved Read<T> interface and TryParse into the util package
    as they're generally not related to rps
Something went wrong with that request. Please try again.