4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
# File 'lib/ari_chess.rb', line 4
def self.play
system("clear")
puts "ARI'S CLI CHESS"
print "\n"
puts "This game is simple. Technically it's for two players."
puts "Enter moves in the format 'a2 a3' (omit the quotes)."
puts "The positions can be space- or comma-delimited."
puts "The game will block you from putting yourself in check."
puts "You might want to zoom in a bit."
print "\n"
puts "Hit ENTER to play."
print "\n"
until (prompt = gets.chomp) == ""
end
Game.new.play
end
|