From 9d8e3c336dccb582dc0a7f881505a6aede464cf3 Mon Sep 17 00:00:00 2001 From: gyboth Date: Mon, 10 Jan 2005 15:37:30 +0000 Subject: [PATCH] Live game can be tested a bit. --- src/callbacks.c | 5 ++--- src/game.c | 2 +- src/game.h | 4 ++-- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/callbacks.c b/src/callbacks.c index 6f3e62d7..0b575da0 100644 --- a/src/callbacks.c +++ b/src/callbacks.c @@ -160,13 +160,12 @@ on_button_new_week_clicked (GtkButton *button, printf("\n"); for(j=0;j<2;j++) { - printf("%s %d %d %.1f\n", fix->teams[j]->name->str, fix->teams[j]->structure, + printf("%s structure %d style %d av. cskill %.1f\n", + fix->teams[j]->name->str, fix->teams[j]->structure, fix->teams[j]->style, team_average_cskill(fix->teams[j])); } live_game_calculate_fixture(fix); - printf("%d : %d\n", math_sum_int_array(fix->result[0], 3), - math_sum_int_array(fix->result[1], 3)); } week++; diff --git a/src/game.c b/src/game.c index fd3b5c38..fe3d21fb 100644 --- a/src/game.c +++ b/src/game.c @@ -63,7 +63,7 @@ game_get_values(const Fixture *fix, gfloat team_values[][GAME_TEAM_VALUE_END], ((1 - style_factor) * (1 + home_advantage * (i == 0)) * (1 + CONSTANT_PLAYER_BOOST_SKILL_EFFECT * (tm[i] == my_team && options[OPT_BOOL_BOOST] == 1))); - printf("%s %.1f %.1f\n", tm[i]->name->str, team_values[i][GAME_TEAM_VALUE_ATTACK], + printf("%s attack %.1f defend %.1f\n", tm[i]->name->str, team_values[i][GAME_TEAM_VALUE_ATTACK], team_values[i][GAME_TEAM_VALUE_DEFEND]); } } diff --git a/src/game.h b/src/game.h index d57f5e84..a588a8e1 100644 --- a/src/game.h +++ b/src/game.h @@ -10,8 +10,8 @@ #define CONSTANT_GAME_PLAYER_FITNESS_EXPONENT 0.25 /* #define CONSTANT_GAME_HOME_ADVANTAGE_LOWER 0.04 */ /* #define CONSTANT_GAME_HOME_ADVANTAGE_UPPER 0.08 */ -#define CONSTANT_GAME_HOME_ADVANTAGE_LOWER 0.0 -#define CONSTANT_GAME_HOME_ADVANTAGE_UPPER 0.0 +#define CONSTANT_GAME_HOME_ADVANTAGE_LOWER 0.04 +#define CONSTANT_GAME_HOME_ADVANTAGE_UPPER 0.08 /** Indices for the team_value array. @see game_get_values() */