You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You could also add raceMultOf with a first parameter to indicate the number of winner(s) to await.
A typical example of usefulness of this is: memory card games.
A natural structure of code for the choice of two cards would be:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
There is a typical example of usefulness of
raceOf
: choices in visual novels.A natural structure of code is:
You could also add
raceMultOf
with a first parameter to indicate the number of winner(s) to await.A typical example of usefulness of this is: memory card games.
A natural structure of code for the choice of two cards would be:
Then,
raceOf
would be synonymous ofraceMultOf 1
.Beta Was this translation helpful? Give feedback.
All reactions