public static void MoveDisc(HanoiState hanoiState, KeyValuePair <int, int> pair) { var disc = hanoiState.Towers.ElementAt(pair.Key).Discs.Last(); hanoiState.Towers.ElementAt(pair.Key).Discs.Remove(disc); hanoiState.Towers.ElementAt(pair.Value).Discs.Add(disc); }
public HanoiState(HanoiState hanoiState) { this.Towers = hanoiState.Towers; }