Пример #1
0
        private void FormBattleships_Load(object sender, EventArgs e)
        {
            brokenChalk = new Font(fonts.Families[0], 18.0F);
            label1.Font = brokenChalk;
            CreatePanel(18, Field1);
            CreatePanel(592, Field2);
            NewGame();
            Battleships.SetPCShips(ref fieldArray2);
            Battleships.CreateShootArrays(ref shoots1, ref shoots2, ref shoots3);

            /*string s="";
             * for(int i =0;i<50;i++)
             * {
             *  for(int j=0;j<2;j++)
             *  {
             *      s += Convert.ToString(shoots3[j, i]);
             *      s += " ";
             *  }
             *  s += "\r\n";
             * }
             * MessageBox.Show(s);*/
        }