Skip to content

Instantly share code, notes, and snippets.

@atimca
Created July 8, 2020 16:26
Show Gist options
  • Save atimca/1db987dadec42779fca382e921727a14 to your computer and use it in GitHub Desktop.
Save atimca/1db987dadec42779fca382e921727a14 to your computer and use it in GitHub Desktop.
store.assert(
.environment {
$0.currentDate = { 100 }
$0.trainingProcessor = TrainingProcessor(
applyGrade: { _, _, _ in flashCard },
nextTraining: { _ in flashCard }
)
},
.send(.fillTheBlanks(.goNext(grade))),
.receive(.trainingCompleted(.bright)) {
$0.currentScene = .showTheWord(WordSceneState(word: flashCard.word, kind: .correctAnswer))
$0.trainingsRemain = 0
}
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment