private static GameState CreateNewStateFromLastState(GameState lastState, int fromIndex, int positions) { var newState = lastState.Clone(); newState.State[fromIndex + positions] = newState.State[fromIndex]; newState.State[fromIndex] = Frog.Empty(); return(newState); }
private void InitializeMiddle() { State[n] = Frog.Empty(); }