Files
Momentum-Firmware/applications/external/reversi/reversi.h
2023-06-17 03:09:33 +01:00

22 lines
420 B
C

#pragma once
#include <furi.h>
#include <stdbool.h>
#define BLACK 1
#define WHITE -1
#define BOARD_SIZE 8
typedef struct {
int8_t board[BOARD_SIZE][BOARD_SIZE];
int8_t current_player;
int8_t human_color;
uint8_t cursor_x;
uint8_t cursor_y;
uint8_t is_game_over;
} GameState;
void init_game(GameState* state);
void computer_move(GameState* game_state);
void human_move(GameState* game_state);