Refactored a bit

This commit is contained in:
AnnaSnoeijs 2025-06-06 21:31:59 +02:00
parent 99f5c6cd6e
commit 5379f50802
8 changed files with 534 additions and 449 deletions

24
ui.h Normal file
View file

@ -0,0 +1,24 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#pragma once
#include "types.h"
#include "config.h"
extern void initBoard( void );
extern void updateBoard(
const wins_t wins,
const board_t board,
const int column
);
extern int askColumn(
const board_t board
#ifndef ONLYPUT
,const move_t move
#endif /* ! ONLYPUT */
);
#ifndef ONLYPUT
extern move_t askMove( void );
#endif /* ! ONLYPUT */