[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

4.3 Game statistics: libggzstats

GGZ game servers can use the ggzstats library which offers various statistic types. For example, the ELO ranking and win/loss ratios are supported.

A typical scenario is the following one:

@verbatim GGZStats *stats;

stats = ggzstats_new(ggzmod); ggzstats_set_game_winner(stats, winner, 1.0); ggzstats_set_game_winner(stats, (winner + 1) % 2, 0.0); ggzstats_recalculate_ratings(stats); ggzstats_free(stats);

The statistics are saved into the database (next to the list of registered players), and can be used as data for web-based community sites.



This document was generated by Abel Cheung on December, 2 2004 using texi2html