Split off command-line options parsing from the main function

This commit is contained in:
AnnaSnoeijs 2025-08-17 23:29:01 +02:00
parent 7cd9faefe0
commit 4dd410a2af
5 changed files with 196 additions and 130 deletions

16
commandline.h Normal file
View file

@ -0,0 +1,16 @@
/* SPDX-License-Identifier: GPL-2.0-only */
#pragma once
#include "macros.h"
#include "types.h"
#include "logic.h"
extern int parseArgs(
int argc,
char *argv[],
board_t *board,
wins_t **wins,
FILE **outputfile,
char **filename,
bool *randomMoves
);