Ejemplo n.º 1
0
        /// <summary>
        /// Saves options to file, and resets the board
        /// </summary>
        void SaveData()
        {
            // put all values to game values
            game.BoardSize        = sliderBoardSize.Value;
            game.Players[0].Name  = txtPlayerNameX.Text;
            game.Players[0].IsCPU = checkCPUX.Checked;
            game.Players[1].IsCPU = checkCPUO.Checked;
            game.Players[1].Name  = txtPlayerNameO.Text;
            game.Delays           = chkThinkTime.Checked;
            game.AutomaticWinLose = chkAutomaticWinLoss.Checked;

            // save options to file
            game.SaveOptions(game.Delays, game.AutomaticWinLose, game.BoardSize, game.Players);

            // reset the board
            game.NewBoard();
        }
Ejemplo n.º 2
0
 void SaveData()
 {
     Game.SaveOptions(Game.Delays, Game.AutomaticWinLose, Game.BoardSize, Game.Players);
 }