From c6dfd8f9da8a1733a6dffda1de532e1a11c96ce0 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 17 Feb 2023 16:29:44 +0100 Subject: [PATCH] use enum --- TP1/C-Cpp/includes/mysok.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/TP1/C-Cpp/includes/mysok.h b/TP1/C-Cpp/includes/mysok.h index ee0d31c..986c0dc 100644 --- a/TP1/C-Cpp/includes/mysok.h +++ b/TP1/C-Cpp/includes/mysok.h @@ -7,11 +7,7 @@ #define NBC 20 #define MAX_CRATES 20 -#define MOVE_U 0 -#define MOVE_D 1 -#define MOVE_L 2 -#define MOVE_R 3 -#define MOVE_W 4 +enum movement { MOVE_U = 0, MOVE_D, MOVE_L, MOVE_R, MOVE_W }; enum board_str { OUT = ' ',