Skip to content

Commit

Permalink
[GUI] Addeed turn selector to model
Browse files Browse the repository at this point in the history
  • Loading branch information
dodikk committed Dec 19, 2015
1 parent 505871b commit 2d87d7e
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Reversi/Assets/BoardEventsHandler.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ void Start()
this._isGameOver = false;

this._mutableBoardModel = new MatrixBoard();
this._turnCalculator = new TurnCalculator();
this._boardModel = this._mutableBoardModel;
this._turnCalculator = new TurnCalculator();
this._boardModel = this._mutableBoardModel;
this._turnSelector = new GreedyTurnSelector();

this._root = GameObject.Find("root");

Expand Down Expand Up @@ -408,9 +409,12 @@ private void populateLabels()
private IBoardState _boardModel ;
private ITurnCalculator _turnCalculator ;
private MatrixBoard _mutableBoardModel;
private ITurnSelector _turnSelector ;

#endregion

private static bool IS_OPPONENT_PLAYER_AI = false;

private const int BOARD_SIZE = 8;
private const string CELL_TAG = "FieldCell";
private const string BALL_TAG = "Ball";
Expand Down
12 changes: 12 additions & 0 deletions Reversi/Assets/ReversiKit/GreedyTurnSelector.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions Reversi/Assets/ReversiKit/RandomTurnSelector.cs.meta

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2d87d7e

Please sign in to comment.