bot_int.h (1059B)
1 /* bot_int.h - evaluaciones del bot heuristico que reusa la busqueda (search.c). */ 2 #ifndef BOT_INT_H 3 #define BOT_INT_H 4 5 #include "catan.h" 6 7 int bot_vert_value(const Game *g, int p, int v); /* valor de un lugar para p */ 8 int bot_pips(const Game *g, int p, int prod[NRES]); /* produccion esperada (pips) por recurso y total */ 9 void bot_road_scores(const Game *g, int p, int score[NEDGE]); /* -1000 = no lleva a nada */ 10 void bot_ship_scores(const Game *g, int p, int score[NEDGE]); /* lo mismo por agua (Navegantes) */ 11 int bot_goal(const Game *g, int p, uint8_t cost[NRES]); /* 0 pueblo, 1 ciudad, 2 carta, 3 ruta */ 12 void bot_pick_discard(const Game *g, int p, int n, uint8_t out[NRES]); 13 int bot_robber_score(const Game *g, int p, int h); 14 int bot_robber_victim(const Game *g, int p, int h); 15 bool bot_robber_on_me(const Game *g, int p); 16 bool bot_counter(const Game *g, int p, Move *m); /* contraoferta razonable a la oferta abierta */ 17 bool bot_offer(const Game *g, int p, Move *m); /* oferta 1 por 1 (una por turno) */ 18 19 #endif