Added ai modes. Altered output of highscores to allow possible parsing with tools easier
This commit is contained in:
+9
-4
@@ -1,6 +1,7 @@
|
||||
#ifndef OPTIONS_H
|
||||
#define OPTIONS_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <getopt.h>
|
||||
|
||||
#define CONSTRAINT_GRID_MIN 4
|
||||
@@ -9,16 +10,20 @@
|
||||
#define DEFAULT_GRID_WIDTH 4
|
||||
#define DEFAULT_SPAWN_VALUE 2
|
||||
#define DEFAULT_SPAWN_RATE 1
|
||||
#define DEFAULT_COLOR_TOGGLE 0
|
||||
#define DEFAULT_ANIMATE_TOGGLE 1
|
||||
#define DEFAULT_COLOR_FLAG false
|
||||
#define DEFAULT_ANIMATE_FLAG true
|
||||
#define DEFAULT_AI_FLAG false
|
||||
#define DEFAULT_INTERACTIVE_FLAG true
|
||||
|
||||
struct gameoptions {
|
||||
int grid_height;
|
||||
int grid_width;
|
||||
long spawn_value;
|
||||
int spawn_rate;
|
||||
int enable_color;
|
||||
int animate;
|
||||
bool enable_color;
|
||||
bool animate;
|
||||
bool ai;
|
||||
bool interactive;
|
||||
};
|
||||
|
||||
void print_usage(void);
|
||||
|
||||
Reference in New Issue
Block a user