Commit 2a3606d

mo khan <mo@mokhan.ca>
2014-04-26 18:47:19
rename mathy executable.
1 parent 84f4cf2
Changed files (2)
bin/mathy
@@ -1,3 +1,18 @@
 #!/usr/bin/env ruby
 
 require 'mathy'
+
+module Mathy
+  verifier = Mathy::Verification.new
+  operations = [
+    Mathy::Operations::Addition.new(verifier),
+    Mathy::Operations::Subtraction.new(verifier)
+  ]
+
+  console = Mathy::Console.new
+
+  player = Player.new(console.greet)
+  game = Mathy::Game.new(player)
+  difficulty = Mathy::Difficulties::GradeTwo.new
+  game.play(console.how_many_turns?, console.operation?(operations), difficulty)
+end
bin/mathy.rb
@@ -1,17 +0,0 @@
-#!/usr/bin/env ruby
-require 'mathy'
-
-module Mathy
-  verifier = Mathy::Verification.new
-  operations = [
-    Mathy::Operations::Addition.new(verifier),
-    Mathy::Operations::Subtraction.new(verifier)
-  ]
-
-  console = Mathy::Console.new
-
-  player = Player.new(console.greet)
-  game = Mathy::Game.new(player)
-  difficulty = Mathy::Difficulties::GradeTwo.new
-  game.play(console.how_many_turns?, console.operation?(operations), difficulty)
-end