Skip to content

Define how the scoring() method should work, based on what data #39

Description

@nealmcb

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().

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions