Skip to content

Instantly share code, notes, and snippets.

@MX-2000
Last active March 26, 2025 10:39
Show Gist options
  • Save MX-2000/94e3f17d9df4f7747bf339f462d5858e to your computer and use it in GitHub Desktop.
Save MX-2000/94e3f17d9df4f7747bf339f462d5858e to your computer and use it in GitHub Desktop.
typedef struct CCpr CCpr;
struct CCpr {
int width;
int height;
int num_agents;
int vision;
int vision_window;
int obs_size;
int tick;
float reward_food;
float reward_move;
float interactive_food_reward;
unsigned char *grid;
unsigned char *observations;
int *actions;
float *rewards;
unsigned char *terminals;
Agent *agents;
LogBuffer *log_buffer;
Log *logs;
uint8_t *interactive_food_agent_count;
FoodList *foods;
float food_base_spawn_rate;
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment