Exemplo n.º 1
0
 public HistoryPlay(RowColumn rowColumn, TicTakChar ticTakChar)
 {
     this.RowColumn  = rowColumn;
     this.TicTakChar = ticTakChar;
 }
Exemplo n.º 2
0
 private bool AnyWinCondition(TicTakChar ticTakCharX)
 {
     return(WinCombinations.Any(p => p.All(x => IsXInPosition(x, ticTakCharX))));
 }
Exemplo n.º 3
0
 private bool IsXInPosition(RowColumn rowColumn, TicTakChar ticTakCharX)
 {
     return(Plays.ContainsKey(rowColumn) && Plays[rowColumn] == ticTakCharX);
 }
Exemplo n.º 4
0
 public void Add(RowColumn column, TicTakChar ticTakChar)
 {
     Plays.Add(column, ticTakChar);
 }