Beispiel #1
0
        public static void LaunchRandomGameShowFinalState()
        {
            Random  rnd      = new Random();
            Match   match1   = new Match();
            Vector3 position = new Vector3();

            while (!match1.FinJeu)
            {
                position.X = rnd.Next(0, 3);
                position.Y = rnd.Next(0, 3);
                position.Z = rnd.Next(0, 3);
                match1.Jouer(position);
            }
            Console.WriteLine("\n ----------------------");
            Console.WriteLine("Fin du jeu : {0}", match1.FinJeu);
            Console.WriteLine("Mode : {0}", match1.Mode);
            Console.WriteLine("Statut Plateau Fin Jeu");
            Plateau.afficher(match1.MatricePlateau);
            Console.WriteLine("\n ----------------------");
            Console.ReadKey();
        }
Beispiel #2
0
 public Match()
 {
     MatricePlateau = Plateau.generationPlateau(TAILLEPLATEAU);
     Mode           = ModeJeu.Joueur1;
 }