first try qdeep learning

This commit is contained in:
2024-06-21 00:28:50 +02:00
parent e96304bee7
commit 582d7a6a70
7 changed files with 401 additions and 70 deletions
+7 -3
View File
@@ -24,7 +24,9 @@
#define CENTER 1
#define RIGHT 2
#define SUBDIVISION 10
#define COUNT_ACTION 3
#define SUBDIVISION 5 //10
struct game_status {
@@ -81,6 +83,7 @@ struct vehicle {
float direction;
float speed;
sensors *sensor;
sensors *old_sensor;
struct blocks *path;
struct game_status *status;
};
@@ -110,10 +113,11 @@ void copy_coordinate(coordinate *coord, float *x);
void move_vehicle(struct vehicle *v);
void read_sensor(struct vehicle *v);
void step(struct vehicle *v, int action);
void step_vehicle(struct vehicle *v, int action);
void reset(struct vehicle *v);
void add_string_log_M(struct game_status *status, char *str );
void print2D_blocks_indexOne_withPoint(struct blocks *blk, float scale_x, float scale_y, coordinate *coordPoint);
void print_vehicle_n_path(struct vehicle *v, float scale_x, float scale_y);