Sha256: c6e440b72a652824db70df0ca4e38f43eddeb0966140ed445908f0be2d576b8f

Contents?: true

Size: 369 Bytes

Versions: 1

Compression:

Stored size: 369 Bytes

Contents

#!/usr/bin/env ruby
require 'mathy'

verifier = Mathy::Verification.new
operations = [
  Mathy::Operations::Addition.new(verifier),
  Mathy::Operations::Subtraction.new(verifier)
]

console = Mathy::Console.new
game = Mathy::Game.new(console)
difficulty = Mathy::Difficulties::GradeTwo.new
game.play(console.how_many_turns?, console.operation?(operations), difficulty)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
mathy-0.0.1 bin/mathy.rb