This commit is contained in:
Maix0 2024-01-13 18:50:17 +01:00
parent 54a5b658d4
commit 33db892d3b
11 changed files with 233 additions and 38 deletions

View file

@ -6,7 +6,7 @@
/* By: maiboyer <maiboyer@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/01/11 16:13:08 by maiboyer #+# #+# */
/* Updated: 2024/01/11 16:18:49 by maiboyer ### ########.fr */
/* Updated: 2024/01/12 21:27:27 by maiboyer ### ########.fr */
/* */
/* ************************************************************************** */
@ -15,22 +15,9 @@
#include "app/element.h"
#include "app/state.h"
#include "me/types.h"
#include "app/types/type_move.h"
typedef enum e_move
{
SWAP_A = 1 << 0,
SWAP_B = 1 << 1,
SWAP_BOTH = SWAP_A | SWAP_B,
PUSH_A = 1 << 2,
PUSH_B = 1 << 3,
ROTATE_A = 1 << 4,
ROTATE_B = 1 << 5,
ROTATE_BOTH = ROTATE_A | ROTATE_B,
REVERSE_ROTATE_A = 1 << 6,
REVERSE_ROTATE_B = 1 << 7,
REVERSE_ROTATE_BOTH = REVERSE_ROTATE_A | REVERSE_ROTATE_B,
} t_move;
#include "me/types.h"
void do_move(t_move m, t_state *s);