Example #1
0
        public void DisplayGameTable()
        {
            Console.Write("|   |");
            for (int ord = 0; ord < Ordonnee; ord++)
            {
                Console.Write(" " + ord + "|");
            }
            Console.WriteLine();

            for (int j = 0; j < Ordonnee; j++)
            {
                Console.Write("| " + j + " |");
                for (int i = 0; i < Abscisse; i++)
                {
                    Case currentCase = GameTable.First(myCase => myCase.X == i && myCase.Y == j);

                    if (currentCase.isAlive)
                    {
                        Console.Write(" * ");
                    }
                    else
                    {
                        Console.Write(" . ");
                    }
                }
                Console.WriteLine();
            }
            Console.WriteLine("_____________________________");
            Console.WriteLine("Generation : " + GenerationId);
        }