Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using System;
- using System.Collections.Generic;
- class MainClass
- {
- static string piege = "";
- public static void Main (string[] args) {
- int score = 0;
- bool mort = false;
- string englais_gauche = "left";
- string englais_droite = "right";
- string englais_avant = "forward";
- bool anticheater = false;
- string repcinematique;
- bool cinematique = true;
- string[] anticheat = new string[3]
- { "gauche", "droite", "avant" };
- string result1 = string.Join(",", anticheat[0]);
- string result2 = string.Join(",", anticheat[1]);
- string result3 = string.Join(",", anticheat[2]);
- //Introduction
- Console.WriteLine("----------------------------------------------------------------------------------------------\n----------------------------------------------------------------------------------------------\n----------------------------------------------------------------------------------------------\nCRÉÉ PAR MOI ( ͡° ͜ʖ ͡°) ET ALIX. DROIT D'AUTEUR: en_fait_je_me_fou_des_droits_d'auteur_mdr\n----------------------------------------------------------------------------------------------\n----------------------------------------------------------------------------------------------\n----------------------------------------------------------------------------------------------");
- System.Threading.Thread.Sleep(4000);
- Console.WriteLine("\n\n\nChoisissez votre language / Choose your language: En/Fr");
- Console.WriteLine("");
- string choix_language = Convert.ToString(Console.ReadLine());
- if (choix_language == "fr")
- {
- Console.WriteLine("Souhaitez-vous passer le tutoriel? (O/N)");
- repcinematique = Console.ReadLine();
- if (repcinematique == "o")
- {
- cinematique = false;
- }
- }
- else if (choix_language == "en")
- {
- Console.WriteLine("Would you like to pass the tutorial? (Y/N)");
- repcinematique = Console.ReadLine();
- if (repcinematique == "y")
- {
- cinematique = false;
- }
- }
- if (cinematique == true)
- {
- if (choix_language == "fr")
- {
- Console.WriteLine("Bonjour et bienvenue dans le labyrinthe.");
- Console.WriteLine("");
- Console.WriteLine("");
- Console.WriteLine("Appuyez sur entrer pour continuer.");
- Console.ReadLine();
- Console.WriteLine("Dans celui-ci, vous devrez vous rendre le plus loin possible sans faire face aux pièges !");
- Console.WriteLine("");
- Console.WriteLine("");
- Console.WriteLine("Appuyez sur entrer pour continuer.");
- Console.ReadLine();
- Console.WriteLine("Vous aurez 1 chance sur 4 de tomber sur un piège à chaque chemins que vous prenez.");
- Console.WriteLine("");
- Console.WriteLine("");
- Console.WriteLine("Appuyez sur entrer pour commencer.");
- Console.ReadLine();
- }
- else if (choix_language == "en")
- {
- Console.WriteLine("Welcome to the maze.");
- Console.WriteLine("");
- Console.WriteLine("");
- Console.WriteLine("Press enter to continue.");
- Console.ReadLine();
- Console.WriteLine("In this maze you’ll have to get the fartest without dying to the traps!");
- Console.WriteLine("");
- Console.WriteLine("");
- Console.WriteLine("Press enter to continue.");
- Console.ReadLine();
- Console.WriteLine("You only have 1 life so be careful!");
- System.Threading.Thread.Sleep(1500);
- Console.WriteLine("");
- }
- }
- //Script Jeu
- if (choix_language == "fr")
- {
- Console.WriteLine("Vous vous réveillez dans un ascenseur en marche.");
- Console.WriteLine("");
- Console.WriteLine("");
- Console.WriteLine("Appuyez sur entrer pour commencer.");
- Console.ReadLine();
- Console.WriteLine("La porte s'ouvre et vous vous retrouvez dans une grande salle. Celle-ci est dotée de trois grand couloirs, un a gauche, un a droite et un tout-droit.");
- System.Threading.Thread.Sleep(5500);
- Console.WriteLine("");
- Console.WriteLine("Faites attention ! L'un des trois chemins peut contenir un piège.");
- Console.WriteLine("");
- Console.WriteLine("");
- Console.WriteLine("");
- Console.WriteLine("");
- System.Threading.Thread.Sleep(3200);
- Console.WriteLine("(entre gauche, pour aller à gauche, droite, pour aller à droite, ou avant, pour aller en avant.");
- }
- else if (choix_language == "en")
- {
- result1 = englais_gauche;
- result2 = englais_droite;
- result3 = englais_avant;
- Console.WriteLine("You just woke up in a working elevator.");
- Console.WriteLine("");
- Console.WriteLine("");
- Console.WriteLine("Press enter to continue.");
- Console.ReadLine();
- Console.WriteLine("The door opens and you walk in a giant room. It has multiple ways: right, left and forward.");
- System.Threading.Thread.Sleep(2500);
- Console.WriteLine("Some paths might be gathered with traps...");
- Console.WriteLine("");
- Console.WriteLine("");
- Console.WriteLine("(enter left, to go left, right, to go right, or forward, to go forward.");
- }
- string choix = "";
- while (mort == false)
- {
- choix = Convert.ToString(Console.ReadLine());
- Random random = new Random();
- if (choix_language == "fr")
- {
- var names_fr = new List<string> { "gauche", "droite", "avant" };
- int index_fr = random.Next(names_fr.Count);
- var name_fr = names_fr[index_fr];
- names_fr.RemoveAt(index_fr);
- piege = name_fr;
- }
- else if (choix_language == "en")
- {
- var names_en = new List<string> { "left", "right", "forward" };
- int index_en = random.Next(names_en.Count);
- var name_en = names_en[index_en];
- names_en.RemoveAt(index_en);
- piege = name_en;
- }
- if (choix != result1)
- if (choix != result2)
- if (choix != result3)
- if (choix_language == "en")
- {
- anticheater = true;
- Console.WriteLine("Have you tryed to cheat right there? Or was it just a mistake? Please restart the program.");
- mort = true;
- }
- else if (choix_language == "fr")
- {
- anticheater = true;
- Console.WriteLine("Avez-vous essayé de tricher? Ou n'était-ce qu'une erreur? Veuillez redémarrer le programme.");
- mort = true;
- }
- if (mort != true)
- {
- if (choix != piege)
- {
- if (choix_language == "fr")
- {
- score += 1;
- Console.WriteLine("Bravo ! Tu as maintenant " + score + " points.");
- System.Threading.Thread.Sleep(1500);
- }
- else if (choix_language == "en")
- {
- score += 1;
- Console.WriteLine("Great! You now have " + score + " points.");
- System.Threading.Thread.Sleep(2000);
- }
- }
- }
- if (choix == piege)
- {
- if (anticheater != true)
- {
- if (choix_language == "fr")
- {
- mort = true;
- Console.WriteLine("Tu est tombé dans le piège, perdu!");
- }
- else if (choix_language == "en")
- {
- mort = true;
- Console.WriteLine("You fell on a trap, game over !");
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement