コード例 #1
0
 public void AssignRole(FieldState playerFigure)
 {
     this.PlayerFigure = playerFigure;
 }
コード例 #2
0
 public void SetField(FieldState state, int column, int row)
 {
     BoardState[column, row] = state; // Check to see if grid is empty before placing
 }
コード例 #3
0
ファイル: AIPlayer.cs プロジェクト: beatrate/TicTacToe
 public AIPlayer(FieldState field, Action <FieldCell> moveFinishCallback, Player identificator)
 {
     this.field     = field;
     finishCallback = moveFinishCallback;
     player         = identificator;
 }
コード例 #4
0
ファイル: HumanPlayer.cs プロジェクト: beatrate/TicTacToe
 public HumanPlayer(ICellSelectionProvider provider, FieldState fieldState, Action <FieldCell> finishCallback)
 {
     selectionProvider  = provider;
     field              = fieldState;
     finishMoveCallback = finishCallback;
 }