public StateGame Step(int index, FieldGame PlayerField) { if (State != StateGame.InProgress) { return(State); } if (index > -1 && index < Fields.Length) { if (Fields[index] != FieldGame.EmptyField) { throw new ExceptionButtonClickClass(); } Fields[index] = PlayerField; if (!CheckWin() && !CheckNotEmptyButtons()) { State = StateGame.NoWin; } } return(State); }
public void CreateFieldGame(FieldGame type, bool reset) { }