Commit c47b71e

mo khan <mo@mokhan.ca>
2009-05-26 20:29:57
started working on initial design
1 parent 315afa5
Changed files (4)
bin/env.rb
@@ -0,0 +1,5 @@
+$LOAD_PATH.push File.join(File.dirname(__FILE__), "/../lib")
+require 'mastermind'
+
+game = Mastermind::Game.new(STDOUT)
+game.start
bin/mastermind.bat
@@ -0,0 +1,1 @@
+@"ruby.exe" "%~dpn0" %*
features/step_definitions/mastermind.rb
@@ -2,3 +2,13 @@
 
 Given /^I am not yet playing$/ do
 end
+
+When /^I start a new game$/ do
+	@messenger = StringIO.new
+	Mastermind::Game.new(@messenger)
+	game.start
+end
+
+Then /^the game should say "(.$)"$/ do |message|
+	@messenger.string.split("\n").should include(message)
+end
.gitignore
@@ -0,0 +1,1 @@
+*.swp