Permalink
Switch branches/tags
Nothing to show
Commits on Dec 14, 2009
  1. finally, using our code to play a game

    I'm not happy with the input/output.
    I found only after running the main() that I needed to flush my I/O
    I think a better Writer class would be useful there
    This completes the basic part of the spec, next up the winby logic
    youngnh committed Dec 14, 2009
Commits on Dec 13, 2009
  1. this is a big, sloppy commit

    I renamed the getMove() method in player to getThrow(), which should have been in it's own commit (a cherrypick might help, but tough to verify that you've done it correctly
    the other thing I'm not thrilled about is the getThrow() implementation in InteractivePlayer
    it has to 1. handle IOExceptions 2. uses a switch statement 3. handle incorrect or empty input
    all of them mildly difficult and I'm not sure what Java constructs to use here
    youngnh committed Dec 13, 2009
  2. prompt for move

    youngnh committed Dec 13, 2009
  3. tweaking the prompt message

    youngnh committed Dec 13, 2009
  4. sets the player name read in

    youngnh committed Dec 13, 2009
  5. refactored test

    youngnh committed Dec 13, 2009
Commits on Dec 11, 2009
  1. next component: player interaction

    I started writing this with mockito, but it would have been more work to mock it than to simply use substitute Input/Output stream classes
    youngnh committed Dec 11, 2009
  2. Game Logic

    this introduces how games will be played with very little implementation code needing to be written
    thanks to the awesomeness that is mockito
    youngnh committed Dec 11, 2009
  3. final tests for core logic

    pulled the individual case out into an abstract method and each class now simply declares which other class it pwns
    youngnh committed Dec 11, 2009
  4. second test

    rock does not beat paper
    youngnh committed Dec 11, 2009
  5. first test

    rock beats scissors
    youngnh committed Dec 11, 2009
Commits on Dec 9, 2009
  1. initial

    youngnh committed Dec 9, 2009