summaryrefslogtreecommitdiff
path: root/bin/mastermind
blob: 97af74be8a3d89240b31ed1760aa8b972db1e9e2 (plain)
1
2
3
4
5
6
7
8
$LOAD_PATH.push File.join(File.dirname(__FILE__), "/../lib")
require 'mastermind'

game = Mastermind::Game.new(STDOUT)
game.start(%w[r g y c])
while guess = gets
	game.guess guess.split
end