Zomis / Games

Many kinds of games, playable in both multiplayer or local play. Replays, spectator mode, and AIs.
https://games.zomis.net
MIT License
17 stars 5 forks source link

Game summary statistics #92

Open Zomis opened 4 years ago

Zomis commented 4 years ago

Would it be interesting to have things like the following? (Using Hanabi as an example, but other relevant numbers could be used for other games)

Hanabi:

And/Or other things?

Zomis commented 2 years ago

Using the super-awesome flexible DSL system, this could be yet another DSL method.

e.g.

actionMetric("cards played per player", play) {
    // run after each play action
}
metric("number of turns waiting for a white 1") {
    // run after each action, check if a white 1 is in a player's hand, or if it has been played or discarded
}
endGameMetric("discarded cards") {
    // run once on game over, count the number of cards that has been discarded
}

Potentially find a way to group/categorize metrics as well?

Zomis commented 2 years ago

Metrics are now supported in the game DSL and are used in Fights (see issue #305).

The question now is how to display the metrics after a regular game?