示例#1
0
        private void btnGameStart_Click(object sender, EventArgs e)
        {
            game = new NIM_Game();
            game.GameReset();
            if (settings.CustomGame.Count() == 0)
            {
                game.GameStart(settings.RowNumb);
                game.CreateGameWithRandomRows(settings.RowMinHeight, settings.RowMaxHeight);
            }
            else
            {
                game.GameStartCustom(settings.CustomGame);
            }
            Game FormGame = new Game(game, settings);

            FormGame.ShowDialog();
        }
示例#2
0
 public Game(NIM_Game ActiveGame, NIM_Game_Settings InpSettings)
 {
     InitializeComponent();
     this.game     = ActiveGame;
     this.settings = InpSettings;
 }