Exemplo n.º 1
0
 public void initGame(GameMode gameMode)
 {
     //Initialize game for default state
     Player playerA = new Player(PlayerType.BALL);
     Player playerB = new Player(PlayerType.CROSS);
     game = new Game(playerA, playerB, Difficulty.NORMAL, gameMode);
     game.chanceOfPlayerAI = true;
     game.chanceOfPlayerA = false;
     lblPlayerA.Text = game.playerA.name;
     lblPlayerB.Text = game.playerB.name;
     update();
 }
Exemplo n.º 2
0
 //bool playerA = true;
 public void initGame(GameMode gameMode)
 {
     //Initialize game for default state
     //Player playerA = new Player(PlayerType.BALL);
     PlayerForm.form = this;
     Player playerA = Start.getLoadPlayer();
     Player playerB = new Player(PlayerType.CROSS);
     game = new Game(ref playerA,ref playerB, Difficulty.NORMAL, gameMode);
     Player tmp = Start.getLoadPlayer();
     //game.chanceOfPlayerAI = true;
     //game.chanceOfPlayerA = false;
     lblPlayerA.Text = game.playerA.name;
     lblPlayerB.Text = game.playerB.name;
     update();
 }
Exemplo n.º 3
0
 public AI(ref Game game)
 {
     this.game = game;
     this.board = game.board;
 }