Exemple #1
0
 public InteractiveMove_PickupAndPlace(GameState game, BoardView boardView)
 {
     _game      = game;
     _boardView = boardView;
     _boardView.CarryClear();
     _boardView.CarryVisible = false;
 }
Exemple #2
0
 public InteractiveMove_PlaceFromReserve(GameState game, BoardView boardView, int pieceID)
 {
     _game      = game;
     _boardView = boardView;
     _pieceID   = pieceID;
     _boardView.CarryClear();
     _boardView.CarryAdd(pieceID);
     _boardView.CarryVisible = true;
 }
Exemple #3
0
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     _game           = GameState.NewGame(5);
     _ai             = new TakAI_V4(_game.Size);
     _evaluator      = _ai.Evaluator;
     _boardView      = new BoardView();
     _boardView.Dock = DockStyle.Fill;
     _boardView.Game = _game;
     this.Controls.Add(_boardView);
     //_boardView.MouseOverSpotChanged += boardView_MouseOverSpotChanged;
 }
Exemple #4
0
 protected override void OnLoad(EventArgs e)
 {
     base.OnLoad(e);
     _boardView      = new BoardView();
     _boardView.Dock = DockStyle.Fill;
     this.Controls.Add(_boardView);
     _boardView.BringToFront();
     _boardView.MouseClick           += boardView_MouseClick;
     _boardView.MouseOverSpotChanged += boardView_MouseOverSpotChanged;
     InitButtonImages();
     NewGame(DefaultGameSize);
 }
Exemple #5
0
        protected override void OnLoad(EventArgs e)
        {
            base.OnLoad(e);
            _boardView      = new BoardView();
            _boardView.Dock = DockStyle.Fill;
            this.Controls.Add(_boardView);
            _boardView.BringToFront();
            _boardView.MouseClick           += boardView_MouseClick;
            _boardView.MouseOverSpotChanged += boardView_MouseOverSpotChanged;
            InitButtonImages();
            NewGame(DefaultGameSize);

            if (System.Environment.GetCommandLineArgs().Contains("debug"))
            {
                TakEngine.Properties.Settings.Default.debug = true;
            }
        }