mirror of
https://github.com/tstellar/bygfoot.git
synced 2025-02-09 08:08:39 +01:00
Live game can be tested a bit.
This commit is contained in:
parent
9e0a3d23e0
commit
9d8e3c336d
@ -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++;
|
||||
|
@ -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]);
|
||||
}
|
||||
}
|
||||
|
@ -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() */
|
||||
|
Loading…
x
Reference in New Issue
Block a user