示例#1
0
 // Use this constructor to create Player vs Player game
 public PlayForm()
 {
     InitializeComponent();
     this.level       = Difficulty.EASY; // No use in case of Player vs Player
     this.mode        = Mode.PLAYERPLAYER;
     gameObject       = new Game.TTTGame(3, 3);
     mRandom          = new Random(DateTime.Now.Millisecond);
     lblMode.Text     = "Player vs Player";
     rbtnPlayer1.Text = "Player 1";
     rbtnPlayer2.Text = "Player 2";
 }
示例#2
0
 // Use this constructor to create Player vs CPU game
 public PlayForm(Difficulty level)
 {
     InitializeComponent();
     this.level       = level;
     this.mode        = Mode.PLAYERCPU;
     gameObject       = new Game.TTTGame(3, 3);
     mRandom          = new Random(DateTime.Now.Millisecond);
     lblMode.Text     = "Player vs CPU";
     rbtnPlayer1.Text = "Player";
     rbtnPlayer2.Text = "CPU";
 }