Exemple #1
0
        public void Display()
        {
            cells = new []
            {
                "#####".ToCharArray(),
                "#   #".ToCharArray(),
                "#   #".ToCharArray(),
                "#   #".ToCharArray(),
                "#####".ToCharArray(),
            };

            for (var x = 0; x < cells.Length; x++)
            {
                for (var y = 0; y < cells[x].Length; y++)
                {
                    var sign = cells[x][y];
                    outputHandler.WriteAt(x, y, sign);
                }
            }

            foreach (var b in beings)
            {
                outputHandler.WriteAt(b.Position.x, b.Position.y, b.Sign);
            }

            outputHandler.WriteAt(0, cells.Length, '\n');
        }