writeBoard() public method

public writeBoard ( string boardType, string player, int x, int y, int value ) : void
boardType string
player string
x int
y int
value int
return void
コード例 #1
0
        /// <summary>
        /// begin the game
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        void button_Click(object sender, EventArgs e)
        {
            button.Text       = "Ready";
            button.Enabled    = false;
            this.GameStarting = true;


            foreach (Ship s in this.ships)
            {
                this.platAlly.AddShip(s.GetCaseShip());
            }

            this.ships.Clear();
            int[,] plat = this.platAlly.ToArrayGameboard();

            for (int i = 0; i < 10; ++i)
            {
                for (int j = 0; j < 10; ++j)
                {
                    fm.writeBoard("PLATEAU-", "P1", i, j, plat[i, j]);
                }
            }
        }