Esempio n. 1
0
 private void menuNew_Click(object sender, System.EventArgs e)
 {
     theGame = null;
     theGame = new game();
     theGame.SetupBoard(EmptyHoleChoice());
     pegToMove      = -1;
     pegDestination = -1;
     setTheBoard();
 }
Esempio n. 2
0
        public board()
        {
            //
            // Required for Windows Form Designer support
            //
            InitializeComponent();

            gameDomain = new GameDomain();

            theGame = new game();
            theGame.SetupBoard(EmptyHoleChoice());
            holes          = new System.Collections.ArrayList(15);
            pegToMove      = -1;
            pegDestination = -1;

            layoutTheBoard();

            setTheBoard();
            pegToMove      = -1;
            pegDestination = -1;
        }