Open Zomis opened 4 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?
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?
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?