Changeset 197 for trunk/src/statistics.h


Ignore:
Timestamp:
05/02/2009 05:37:36 PM (3 years ago)
Author:
guyru
Message:

Save score distribution

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/statistics.h

    r193 r197  
    2323 
    2424#include "configuration.h" 
     25#include <vector>  
    2526namespace statistics { 
    2627 
     
    5253        int games_started; 
    5354        int games_finished; 
     55        std::vector<int> score_distribution; 
    5456        configuration::Configuration *backend; 
    5557}; 
     58 
     59const int score_distribution_granuality = 50; 
     60// anything above the following score will be in the same slot 
     61const int score_distribution_max = 500; 
     62const int score_distributions_slots = score_distribution_max/score_distribution_granuality+1; 
    5663 
    5764} //namespace 
Note: See TracChangeset for help on using the changeset viewer.