Skip to content

Instantly share code, notes, and snippets.

@Paul-cbt
Last active November 14, 2021 17:54
Show Gist options
  • Save Paul-cbt/cf438a3a863be596cbae6ac834f3785f to your computer and use it in GitHub Desktop.
Save Paul-cbt/cf438a3a863be596cbae6ac834f3785f to your computer and use it in GitHub Desktop.
void start() {
var endResult =
Resultat(numberOfDormir: 0, numberOfMangeoire: 0, numberOfRoue: 0);
var resultDormir = run(Status.dormir);
endResult = endResult.add(
resultDormir); //faire tourner une fois avec situation intitale dormir
var resultReveil = run(Status.reveil);
endResult = endResult.add(resultReveil); //une fois avec reveil
var resultManger = run(Status.manger);
endResult = endResult.add(resultManger); //manger
var resultExercice = run(Status.exercice);
endResult = endResult.add(resultExercice);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment