-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #7 from h3nnn4n/feat/add-move-blacklist
Add move blacklist
- Loading branch information
Showing
12 changed files
with
245 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
#include "config.h" | ||
|
||
static config_t config = {0}; | ||
|
||
void init_config() { | ||
config.do_benchmark = 0; | ||
config.do_solve = 0; | ||
config.rebuild_tables = 0; | ||
config.max_depth = 25; | ||
config.n_solutions = 1; | ||
config.timeout = 1; | ||
|
||
for (int i = 0; i < N_MOVES; i++) { | ||
config.move_black_list[i] = MOVE_NULL; | ||
} | ||
} | ||
|
||
config_t *get_config() { return &config; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
#ifndef __CONFIG_H | ||
#define __CONFIG_H | ||
|
||
#include "definitions.h" | ||
|
||
typedef struct { | ||
int do_benchmark; | ||
int do_solve; | ||
int rebuild_tables; | ||
int max_depth; | ||
int n_solutions; | ||
|
||
float timeout; | ||
|
||
// we only have 18 moves, so the black list cant evet be greater than 18 in length | ||
// (Assuming there are no repeats) | ||
move_t move_black_list[18]; | ||
} config_t; | ||
|
||
void init_config(); | ||
config_t *get_config(); | ||
|
||
#endif /* end of include guard */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.