public CreatureStats GetCreatureStatsOfCurrentBest(BestCreaturesOverlayView view) { var generation = bestCreatureController.CurrentGeneration; var info = evolution.SimulationData.BestCreatures[generation - 1]; return(info.Stats); }
public int GetNumberOfNetworkOutputs(BestCreaturesOverlayView view) { var currentBest = bestCreatureController.CurrentBest; if (currentBest == null) { return(0); } return(currentBest.brain.NumberOfOutputs); }
public void SelectedGeneration(BestCreaturesOverlayView view, int generation) { generation = Math.Max(1, generation); // Check if the selected generation has been simulated yet. var lastSimulatedGeneration = evolution.SimulationData.BestCreatures.Count; if (lastSimulatedGeneration < generation) { view.ShowErrorMessage(string.Format("Generation {0} has not been simulated yet.\n\nCurrently Simulated up to Generation {1}", generation, lastSimulatedGeneration)); return; } view.HideErrorMessage(); bestCreatureController.ShowBestCreature(generation); Refresh(); }
public int GetNumberOfNetworkInputs(BestCreaturesOverlayView view) { return(evolution.GetNumberOfCurrentBrainInputs()); }
public NeuralNetworkSettings GetNetworkSettingsOfCurrentBest(BestCreaturesOverlayView view) { return(evolution.NetworkSettings); }
public int GetGenerationOfCurrentBest(BestCreaturesOverlayView view) { return(bestCreatureController.CurrentGeneration); }
public int GetCurrentSimulationGeneration(BestCreaturesOverlayView view) { return(evolution.CurrentGenerationNumber); }
public int GetAutoplayDuration(BestCreaturesOverlayView view) { return(bestCreatureController.AutoplayDuration); }
public bool IsAutoplayEnabled(BestCreaturesOverlayView view) { return(bestCreatureController.AutoplayEnabled); }
public void DidClickOnPipView(BestCreaturesOverlayView view) { visibleScreen = VisibleScreen.Simulation; Refresh(); }
public void DidChangeAutoplayDuration(BestCreaturesOverlayView view, int duration) { bestCreatureController.AutoplayDuration = duration; }
public void DidChangeAutoplayEnabled(BestCreaturesOverlayView view, bool enabled) { bestCreatureController.AutoplayEnabled = enabled; }