//private System.Drawing.Bitmap myBitmap; // Our Bitmap declaration public Form1() { InitializeComponent(); this.player = new Player(); this.player.BoardPiece = BoardPiece.Red; this.computer = new Computer(); this.computer.BoardPiece = BoardPiece.Green; }
public Logic(Player player, Computer computer) { this.Player = player; this.Computer = computer; if (this.Computer.BoardPiece == BoardPiece.Green) { this.computerGamePieces = new GamePiece[] { new GamePiece(0, 2), new GamePiece(0, 3), new GamePiece(0, 4), new GamePiece(0, 5), new GamePiece(0, 6), new GamePiece(0, 7), new GamePiece(0, 8) }; this.playerGamePieces = new GamePiece[] { new GamePiece(2, 0), new GamePiece(3, 0), new GamePiece(4, 0), new GamePiece(5, 0), new GamePiece(6, 0), new GamePiece(7, 0), new GamePiece(8, 0) }; } else { this.computerGamePieces = new GamePiece[] { new GamePiece(2, 0), new GamePiece(3, 0), new GamePiece(4, 0), new GamePiece(5, 0), new GamePiece(6, 0), new GamePiece(7, 0), new GamePiece(8, 0) }; this.playerGamePieces = new GamePiece[] { new GamePiece(0, 2), new GamePiece(0, 3), new GamePiece(0, 4), new GamePiece(0, 5), new GamePiece(0, 6), new GamePiece(0, 7), new GamePiece(0, 8) }; } }