diff options
| author | mo khan <mo@mokhan.ca> | 2009-05-28 13:07:10 -0600 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2009-05-28 13:07:10 -0600 |
| commit | e1afbc888054063cb471affdd2b0ff02f423b8ef (patch) | |
| tree | 3a3840637e88992740bd132342deaa910c0259eb /bin | |
| parent | 1b3e97664a6fe0af00cb0aef406ebba8de69f7c9 (diff) | |
made it up to page 88main
Diffstat (limited to 'bin')
| -rw-r--r-- | bin/mastermind | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/mastermind b/bin/mastermind index 43fe304..97af74b 100644 --- a/bin/mastermind +++ b/bin/mastermind @@ -2,4 +2,7 @@ $LOAD_PATH.push File.join(File.dirname(__FILE__), "/../lib") require 'mastermind' game = Mastermind::Game.new(STDOUT) -game.start +game.start(%w[r g y c]) +while guess = gets + game.guess guess.split +end |
