-
Notifications
You must be signed in to change notification settings - Fork 0
/
appV3.rb
29 lines (27 loc) · 1.12 KB
/
appV3.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
require 'bundler'
Bundler.require
require_relative 'lib/game'
require_relative 'lib/player'
# Welcome screen
puts "*********************************************************************"
puts "* *"
puts "* | T'es maintenant sur mon jeu 'ILS VEULENT TOUS MA POO' ! | *"
puts "* | | *"
puts "* | | *"
puts "* | | *"
puts "* | Le but du jeu est d'être le dernier survivant ! | *"
puts "* *"
puts "*-------------------------------------------------------------------*"
# Initializing User player character
puts 'Entrer votre nom pour commencer'
puts name_player = gets.chomp
my_game = Game.new(name_player)
while my_game.is_still_ongoing? == true do
my_game.show_players
my_game.menu
puts "Choisissez une option"
action = gets.chomp.to_s
puts
my_game.menu_choice(action)
my_game.enemies_attack
end