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
I don't see win() in the reference manual or elsewhere besides in the example game.
When is it called? What should it return? Based on what data?
E.g. I wouldn't think win() would be called before the end of the game, but it seems to be.
How can we e.g. just track a score for each player, and show a win (for the current player? defined by what?) if the current player has a higher score?
Update: Hmm - I see now that win() isn't required. So my questions really apply to scoring().
The text was updated successfully, but these errors were encountered:
nealmcb
changed the title
Define what the win() method should do, based on what data
Define how the scoring() method should work, based on what data
Apr 1, 2019
I don't see
win()
in the reference manual or elsewhere besides in the example game.When is it called? What should it return? Based on what data?
E.g. I wouldn't think win() would be called before the end of the game, but it seems to be.
How can we e.g. just track a score for each player, and show a win (for the current player? defined by what?) if the current player has a higher score?
Update: Hmm - I see now that
win()
isn't required. So my questions really apply toscoring()
.The text was updated successfully, but these errors were encountered: