Exemple #1
0
 protected Logic(int width, int height, Vector2D[] homeSquares)
 {
     Board                = new Board(width, height);
     this.homeSquares     = homeSquares;
     availableColorFinder = new AvailableColorFinder(Board, homeSquares);
     turns                = new int[homeSquares.Length];
 }
Exemple #2
0
 protected Logic(Board.Data boardData, Vector2D[] homeSquares)
 {
     Board                = new Board(boardData);
     this.homeSquares     = homeSquares;
     availableColorFinder = new AvailableColorFinder(Board, homeSquares);
     turns                = new int[homeSquares.Length];
 }
Exemple #3
0
		protected Logic(int width, int height, Vector2D[] homeSquares)
		{
			Board = new Board(width, height);
			this.homeSquares = homeSquares;
			availableColorFinder = new AvailableColorFinder(Board, homeSquares);
			turns = new int[homeSquares.Length];
		}
Exemple #4
0
		protected Logic(Board.Data boardData, Vector2D[] homeSquares)
		{
			Board = new Board(boardData);
			this.homeSquares = homeSquares;
			availableColorFinder = new AvailableColorFinder(Board, homeSquares);
			turns = new int[homeSquares.Length];
		}
 public HumanVsAiLogicTests(Logic logic)
 {
     this.logic  = logic;
     colorFinder = new AvailableColorFinder(logic.Board, new[] { PlayerHomeSquare, AiHomeSquare });
 }
		public HumanVsAiLogicTests(Logic logic)
		{
			this.logic = logic;
			colorFinder = new AvailableColorFinder(logic.Board, new[] { PlayerHomeSquare, AiHomeSquare });
		}