예제 #1
0
파일: Menu.cs 프로젝트: maxxysfm/mi_course
        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;
 }