예제 #1
0
파일: Test.cs 프로젝트: SaulLu/3DTicTacToe
        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();
        }
예제 #2
0
파일: match.cs 프로젝트: SaulLu/3DTicTacToe
 public Match()
 {
     MatricePlateau = Plateau.generationPlateau(TAILLEPLATEAU);
     Mode           = ModeJeu.Joueur1;
 }