Advertisement
Guest User

Untitled

a guest
Nov 22nd, 2017
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 4.80 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Text;
  5. using System.Threading.Tasks;
  6.  
  7. namespace Méga_Bazara
  8. {
  9.     class Program
  10.     {
  11.         /*static void Suspension()
  12.         {
  13.             System.Threading.Thread.Sleep(1000);
  14.             Console.Write(".");
  15.             System.Threading.Thread.Sleep(1000);
  16.             Console.Write(".");
  17.             System.Threading.Thread.Sleep(1000);
  18.             Console.WriteLine(".");
  19.         }*/
  20.  
  21.         static string ChoixClasse()
  22.         {
  23.             int classe = 0, verif = 0;
  24.             string strClasse = "";
  25.             while (verif == 1)
  26.             {
  27.                 Console.WriteLine("~~~> Choisissez votre classe <~~~");
  28.                 Console.WriteLine("(1) Guerrier");
  29.                 Console.WriteLine("(2) Sorcier");
  30.                 Console.WriteLine("");
  31.                 Console.Write("Classe n°:");
  32.                 classe = Convert.ToInt16(Console.Read());
  33.                 switch (classe)
  34.                 {
  35.                     case 1:
  36.                         strClasse = "Guerrier";
  37.                         Console.WriteLine(strClasse + ", êtes-vous sûr ?");
  38.                         Console.WriteLine("(0) OUI");
  39.                         Console.WriteLine("(1) NON");
  40.                         Console.WriteLine("");
  41.                         Console.Write("Réponse:");
  42.                         verif = Convert.ToInt16(Console.ReadLine());
  43.                         break;
  44.                     case 2:
  45.                         strClasse = "Sorcier";
  46.                         Console.WriteLine(strClasse + ", êtes-vous sûr ?");
  47.                         Console.WriteLine("(0) OUI");
  48.                         Console.WriteLine("(1) NON");
  49.                         Console.WriteLine("");
  50.                         Console.Write("Réponse:");
  51.                         verif = Convert.ToInt16(Console.ReadLine());
  52.                         break;
  53.                     default:
  54.                         Console.WriteLine("XXXX Choix non valide !! XXXX");
  55.                         break;
  56.                 }
  57.             }
  58.             return classe;
  59.         }
  60.  
  61.         static int ChoixLieu()
  62.         {
  63.             int lieu = 0, verif = 0
  64.             ; string strLieu = ""
  65.              ;
  66.             if (lieu == 0)
  67.             { strLieu = "bar"; }
  68.             if (lieu == 1)
  69.             { strLieu = "forêt"; }
  70.             if (lieu == 3)
  71.             { strLieu = "donjon"; }
  72.             while (verif != 1)
  73.             {
  74.                 ; Console.WriteLine("")
  75.                  ;
  76.             }
  77.  
  78.             ; return lieu;
  79.         }
  80.  
  81.         /*static int Bar()
  82.         {
  83.             int verif = 0, choix = 0;
  84.             while (verif != 1)
  85.             {
  86.                 Console.WriteLine("~~~~>BAR<~~~~");
  87.                 Console.WriteLine("1.bière");
  88.                 Console.WriteLine("2.dormir");
  89.                 choix = Convert.ToInt16(Console.ReadLine());
  90.                 switch (choix)
  91.                 {
  92.                     case 1:
  93.                         Console.WriteLine("Bière : -5€ +2HP");
  94.                         break;
  95.                     case 2:
  96.                         Console.WriteLine("Dormir : -25€ +full HP");
  97.                         break;
  98.                 }
  99.             }
  100.             return choix;
  101.         }
  102.  
  103.         static int Forêt()
  104.         {
  105.             return choix;
  106.         }
  107.  
  108.         static int Donjon()
  109.         {
  110.             return choix;
  111.         }
  112.  
  113.         static void combat()
  114.         {
  115.  
  116.         }*/
  117.  
  118.         static void Main(string[] args)
  119.         {
  120.             Console.WriteLine();
  121.             Console.WriteLine("~~~~ Bienvenue dans Méga Bazara ! ~~~~");
  122.             System.Threading.Thread.Sleep(1500);
  123.             Console.WriteLine("Commençons par choisir une classe.");
  124.             System.Threading.Thread.Sleep(1500);
  125.             string classe = ChoixClasse();
  126.             string lieu = "", état = "vivant";
  127.             int hp = 10;
  128.             Console.WriteLine("Ok, tu seras " + classe + ".");
  129.             Console.Clear();
  130.             Console.WriteLine("Bon, c'est pas tout ça mais, faudrait p't'être qu'on sache ton nom hein...");
  131.             Console.WriteLine("C'est quoi ton p'tit nom ? ( ͡° ͜ʖ ͡°)");
  132.             while (état == "vivant")
  133.             {
  134.                 switch (lieu)
  135.                 {
  136.                     case lieu:
  137.                         ChoixLieu();
  138.                         break;
  139.                     case bar:
  140.                         Bar();
  141.                         break;
  142.                     case forêt:
  143.                         Forêt();
  144.                         break;
  145.                     default:
  146.                         break;
  147.                 }
  148.             }
  149.             string Name = Console.ReadLine();
  150.         }
  151.     }
  152. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement