Skip to content

Commit 227def1

Browse files
committed
Update main file
1 parent c23c7b4 commit 227def1

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

main.rb

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
require_relative 'lib/game'
22
require_relative 'serializable'
3+
require 'colorize'
34

45
loop do
6+
puts "Welcome on the ChessGame".upcase.light_blue
57
puts "Please choose from the following:
68
1) Human vs Human
79
2) Human vs AI
810
3) AI vs AI
911
4) Load an old game
1012
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."
1115
answer = gets.chomp
1216
game = ChessGame.new
1317
if answer == "1"
@@ -33,7 +37,7 @@
3337
redo
3438
else
3539
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
3741
break
3842
end
3943
end

0 commit comments

Comments
 (0)