Sha256: 7ddc154a9eab00426ead39484500b7e336932ee1a76556b2124fcdb2b309ccc3

Contents?: true

Size: 781 Bytes

Versions: 1

Compression:

Stored size: 781 Bytes

Contents

##
# Auteur Brabant Mano
# Version 0.1 : Date : 07/02/2020


require "../Core/Jeu.rb"
require "../Core/ConnectSqlite3.rb"

res = ""

res += "4=5---2"
res += "\"2\"1-2|"
res += "\"\"\"  |1"
res += "\"\"6==5 "
res += "2\"\"  \" "
res += " \"4=2\" "
res += " 4===4 "



begin

  print "Veuillez entrer le nom du compte : "
  nomCompte = gets.chomp
  jeu = Jeu.creer(0, 7, Compte.recuperer(nomCompte))

rescue => e

    puts e.message()
    puts "Voulez vous le creer ? (O/n)"
    rep = gets.chomp

    if(rep == "o" || rep == "O" || rep == "Oui" || rep == "OUI" || rep == "oui")

      compte = Compte.creer(nomCompte)
      jeu = Jeu.creer(0, 7, compte)

    elsif(rep == "n" || rep == "N" || rep == "Non" || rep == "NON" || rep == "non")

      retry

    end

end

jeu.lanceToi()

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
Hashiparmentier-0.4.0 lib/Hashiparmentier/Test/TestJeu.rb