From 02e55b0647eb5c631e7d7669a13fd0d47ec26c15 Mon Sep 17 00:00:00 2001 From: jacopo grandi Date: Thu, 4 Mar 2021 12:40:52 +0100 Subject: morning fixes and bruteforce unit generation --- main.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'main.c') diff --git a/main.c b/main.c index 3090135..5c7400b 100644 --- a/main.c +++ b/main.c @@ -18,6 +18,7 @@ #include "gst/map.h" #include "gst/info.h" #include "gst/gst.h" +#include "gst/generate.h" #include "hud/hud.h" #include "net/net.h" @@ -33,9 +34,6 @@ Mix_Music *gMusic = NULL; //The sound effects that will be used Mix_Chunk *sounds[16]; -#define A(a, arg) printf("value: %d", a.arg); -struct a { int v; } biga; - int main( int argc, char* args[] ) { graphic_settings gs = { 1250, 700 }; @@ -46,6 +44,7 @@ int main( int argc, char* args[] ) { SDL_Init(SDL_INIT_VIDEO); net_init(); + generate_init(); SDL_SetHint(SDL_HINT_RENDER_SCALE_QUALITY, "0"); @@ -100,6 +99,11 @@ int main( int argc, char* args[] ) { infos info; info_load(&info); + info_unit ugen; generate_unit(&info, &ugen, 10000); + stats_unit base; stats_unit_compute(&info, &ugen, &base); + stats_unit_printf(&info, &base); + info_unit_printf(&ugen); + printf("COST: %.2f\n", stats_compute_cost(&info.cost_weights, &base)); gamestate gst; gst_init(&gst); -- cgit v1.2.3-54-g00ecf