work in progress

This commit is contained in:
2024-07-13 18:22:15 -04:00
parent 8da12f5360
commit 39d3447593
8 changed files with 105 additions and 3 deletions

View File

@ -9,7 +9,7 @@ const int INF = 0x3F3F3F3F;
enum error {none};
// TODO: update result to include subject
enum result {fine, died, go_down, go_up, hit, moved, miss};
enum result {fine, died, go_down, go_up, hit, moved, miss, terminate};
enum game_status {terminated, main_menu, in_game, options,
dead, won, escaped, restart
@ -63,7 +63,7 @@ const int DIRECTION_CNT = 8;
// IMPORTANT: east is positive for x and SOUTH is positive for y
// initializes all directions to an int
enum direction { north = 0, south, east, west, northeast,
northwest, southeast, southest
northwest, southeast, southwest
};
const position MOVE[DIRECTION_CNT] = {