Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace Méga_Bazara
- {
- class Program
- {
- /*static void Suspension()
- {
- System.Threading.Thread.Sleep(1000);
- Console.Write(".");
- System.Threading.Thread.Sleep(1000);
- Console.Write(".");
- System.Threading.Thread.Sleep(1000);
- Console.WriteLine(".");
- }*/
- static string ChoixClasse()
- {
- int classe = 0, verif = 0;
- string strClasse = "";
- while (verif == 1)
- {
- Console.WriteLine("~~~> Choisissez votre classe <~~~");
- Console.WriteLine("(1) Guerrier");
- Console.WriteLine("(2) Sorcier");
- Console.WriteLine("");
- Console.Write("Classe n°:");
- classe = Convert.ToInt16(Console.Read());
- switch (classe)
- {
- case 1:
- strClasse = "Guerrier";
- Console.WriteLine(strClasse + ", êtes-vous sûr ?");
- Console.WriteLine("(0) OUI");
- Console.WriteLine("(1) NON");
- Console.WriteLine("");
- Console.Write("Réponse:");
- verif = Convert.ToInt16(Console.ReadLine());
- break;
- case 2:
- strClasse = "Sorcier";
- Console.WriteLine(strClasse + ", êtes-vous sûr ?");
- Console.WriteLine("(0) OUI");
- Console.WriteLine("(1) NON");
- Console.WriteLine("");
- Console.Write("Réponse:");
- verif = Convert.ToInt16(Console.ReadLine());
- break;
- default:
- Console.WriteLine("XXXX Choix non valide !! XXXX");
- break;
- }
- }
- return classe;
- }
- static int ChoixLieu()
- {
- int lieu = 0, verif = 0
- ; string strLieu = ""
- ;
- if (lieu == 0)
- { strLieu = "bar"; }
- if (lieu == 1)
- { strLieu = "forêt"; }
- if (lieu == 3)
- { strLieu = "donjon"; }
- while (verif != 1)
- {
- ; Console.WriteLine("")
- ;
- }
- ; return lieu;
- }
- /*static int Bar()
- {
- int verif = 0, choix = 0;
- while (verif != 1)
- {
- Console.WriteLine("~~~~>BAR<~~~~");
- Console.WriteLine("1.bière");
- Console.WriteLine("2.dormir");
- choix = Convert.ToInt16(Console.ReadLine());
- switch (choix)
- {
- case 1:
- Console.WriteLine("Bière : -5€ +2HP");
- break;
- case 2:
- Console.WriteLine("Dormir : -25€ +full HP");
- break;
- }
- }
- return choix;
- }
- static int Forêt()
- {
- return choix;
- }
- static int Donjon()
- {
- return choix;
- }
- static void combat()
- {
- }*/
- static void Main(string[] args)
- {
- Console.WriteLine();
- Console.WriteLine("~~~~ Bienvenue dans Méga Bazara ! ~~~~");
- System.Threading.Thread.Sleep(1500);
- Console.WriteLine("Commençons par choisir une classe.");
- System.Threading.Thread.Sleep(1500);
- string classe = ChoixClasse();
- string lieu = "", état = "vivant";
- int hp = 10;
- Console.WriteLine("Ok, tu seras " + classe + ".");
- Console.Clear();
- Console.WriteLine("Bon, c'est pas tout ça mais, faudrait p't'être qu'on sache ton nom hein...");
- Console.WriteLine("C'est quoi ton p'tit nom ? ( ͡° ͜ʖ ͡°)");
- while (état == "vivant")
- {
- switch (lieu)
- {
- case lieu:
- ChoixLieu();
- break;
- case bar:
- Bar();
- break;
- case forêt:
- Forêt();
- break;
- default:
- break;
- }
- }
- string Name = Console.ReadLine();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement