Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 private void InitializeMiddle()
 {
     State[n] = Frog.Empty();
 }