We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c23c7b4 commit 227def1Copy full SHA for 227def1
1 file changed
main.rb
@@ -1,13 +1,17 @@
1
require_relative 'lib/game'
2
require_relative 'serializable'
3
+require 'colorize'
4
5
loop do
6
+ puts "Welcome on the ChessGame".upcase.light_blue
7
puts "Please choose from the following:
8
1) Human vs Human
9
2) Human vs AI
10
3) AI vs AI
11
4) Load an old game
12
5) View names from the collection library"
13
+
14
+puts "Type 's' to "+ "save".light_green + " your progression or 'q' to " + "quit".light_red + " the game."
15
answer = gets.chomp
16
game = ChessGame.new
17
if answer == "1"
@@ -33,7 +37,7 @@
33
37
redo
34
38
else
35
39
puts "Thank you for playing!"
36
- puts "Don't hesitate to follow me on GitHub: odilsonjs"
40
+ puts "Don't hesitate to follow me on GitHub: " + "odilsonjs".light_green
41
break
42
end
43
0 commit comments