Example #1
0
 public bool AddMarkToCell(EnumForMarks.Mark mark, int location)
 {
     if (location > board.Length - 1)
     {
         throw new OutOfCellException();
     }
     if (!IsBoardFull())
     {
         cell.SetMark(mark);
         board = cell.IsCellEmpty(board, location);
         return(true);
     }
     return(false);
 }
Example #2
0
 public Player(string name,EnumForMarks.Mark mark)
 {
     this.name = name;
     this.mark = mark;
 }
Example #3
0
 public void SetMark(EnumForMarks.Mark mark)
 {
     this.mark = mark;
 }