Beispiel #1
0
        private void FillSea(Sea sea)
        {
            var sea_array = sea.GetAll();

            for (int i = 0; i < sea_array.Length; i++)
            {
                for (int j = 0; j < sea_array.Length; j++)
                {
                    if (sea_array[i][j] == 0)
                    {
                        gameGrid.Rows[i].Cells[j].SetColor(Color.Black);
                    }
                }
            }
        }