196 Commits

Author SHA1 Message Date
Karma Riuk
0525bd565e minor fixes 2025-02-07 00:29:39 +01:00
Karma Riuk
695cef33df fixed test execution 2025-02-07 00:29:17 +01:00
Karma Riuk
75b6c35cc5 if the ai found the move before the thinking_time
is over, stop the thread to return
2025-02-06 23:46:34 +01:00
Karma Riuk
74fa99fe7b faking some thought for the random player 2025-02-06 23:46:06 +01:00
Karma Riuk
0274f44647 minor fix 2025-02-06 23:46:00 +01:00
Karma Riuk
a5abe39aa4 added a position to perft 2025-02-06 23:37:55 +01:00
Karma Riuk
e056ef0805 minor modifications to ai v1 2025-02-06 22:57:06 +01:00
Karma Riuk
dc6631f79c made AIs aware what colour they were playing 2025-02-06 22:56:41 +01:00
Karma Riuk
d6aa977a15 added the 50-move draw rule 2025-02-06 22:39:11 +01:00
Karma Riuk
6e567f2f11 added the check for insufficient material 2025-02-06 22:34:48 +01:00
Karma Riuk
fced9757c2 made figuring whether the board is terminal easier 2025-02-06 22:10:47 +01:00
Karma Riuk
04134f013c implemented the ai vs ai controller
Some checks failed
pre-release / Pre Release (push) Has been cancelled
2025-02-06 21:21:18 +01:00
Karma Riuk
47cf8b3539 unified controller interface 2025-02-06 20:59:05 +01:00
Karma Riuk
a47130e5d0 fixed variable name 2025-02-06 20:41:17 +01:00
Karma Riuk
e0a52f57b7 made the thinking time of AIs common to all of them 2025-02-06 20:38:27 +01:00
Karma Riuk
74e4d596a7 very easily implemented the human_vs_ai controller
Some checks failed
pre-release / Pre Release (push) Waiting to run
tagged-release / Tagged Release (push) Has been cancelled
(god i love a good design)
v1.1.0
2025-02-06 20:12:12 +01:00
Karma Riuk
60e1a77fcb fixed slight bug 2025-02-06 20:11:58 +01:00
Karma Riuk
46a835df4b moved some code around because it made more sense 2025-02-06 20:11:11 +01:00
Karma Riuk
10257351cb created a no-op gui (to run the games without
showing them, can be useful)
2025-02-06 19:53:11 +01:00
Karma Riuk
96f0ec5399 implemented full manual controller 2025-02-06 19:42:48 +01:00
Karma Riuk
e376d67c83 added to string for piece and colour 2025-02-06 19:42:30 +01:00
Karma Riuk
d8557d02df now showing target squares of legal moves 2025-02-06 19:11:30 +01:00
Karma Riuk
d08a5cca39 extracted a function to utils 2025-02-06 19:11:03 +01:00
Karma Riuk
058616fa89 extracted the drawing of the annotation in it's
own function
2025-02-06 18:45:11 +01:00
Karma Riuk
b8627ace14 quick little refactoring 2025-02-06 18:34:54 +01:00
Karma Riuk
77f77ac04e now we draw the annotations for the squares 2025-02-06 18:23:44 +01:00
Karma Riuk
56b74318c1 moved colours 2025-02-06 18:23:19 +01:00
Karma Riuk
811acaa479 drawing pieces correctly 2025-02-06 17:58:49 +01:00
Karma Riuk
1ae0cad802 fixed colours 2025-02-06 17:34:37 +01:00
Karma Riuk
f540246817 we're starting to get somewhere here 2025-02-06 17:31:16 +01:00
Karma Riuk
42484f4217 small refactoring to get rid of compiler warning 2025-02-06 16:18:13 +01:00
Karma Riuk
72f3431418 big refactoring: put everything in model to allow
for better mvc structure (yes i'm doing view in cpp)
2025-02-06 16:15:56 +01:00
Karma Riuk
1231e4da92 added the less than operator to store the objects
in maps
2025-02-06 15:57:21 +01:00
Karma Riuk
32c7832001 cleaned up the ais a bit 2025-02-06 15:57:06 +01:00
Karma Riuk
5f093907f3 small refactoring 2025-02-06 15:45:32 +01:00
Karma Riuk
6d8a3f7dc0 made lambda capture values by reference, not by
value
2025-02-06 10:55:25 +01:00
Karma Riuk
108c0c3b90 added 500 equal positions to start from for the
AIs to fight
2025-02-06 10:44:54 +01:00
Karma Riuk
e821814cd1 updated the code of main
Some checks failed
pre-release / Pre Release (push) Waiting to run
tagged-release / Tagged Release (push) Has been cancelled
v1.0.1
2025-02-06 10:43:28 +01:00
Karma Riuk
2899820bcc created a very stupid player that plays random
moves
2025-02-06 10:43:07 +01:00
Karma Riuk
6fd9b15261 moved stickfosh to the ais folder, since we want
to create multiple versions and make them fight
2025-02-06 10:42:42 +01:00
Karma Riuk
97b3eeb984 first version of stickfosh, simply evaluates a
Some checks failed
tagged-release / Tagged Release (push) Has been cancelled
position based on the material (no AB-pruning)
v1.0.0
2025-02-05 17:11:09 +01:00
Karma Riuk
982f933698 removed useless include 2025-02-05 17:11:00 +01:00
Karma Riuk
d21fcde21c renamed stickfosh to perft, it's more appropriate 2025-02-05 16:23:16 +01:00
Karma Riuk
a47dc9b695 Merge branch 'main' into opti-2-compacting-move
Some checks failed
pre-release / Pre Release (push) Waiting to run
tagged-release / Tagged Release (push) Has been cancelled
v0.7.2
2025-02-05 15:37:57 +01:00
Karma Riuk
e8ca1db8d6 using the thread pool for each move in the top
Some checks failed
tagged-release / Tagged Release (push) Has been cancelled
level of the search (x4~ improvement)
v0.7.1
2025-02-05 15:30:55 +01:00
Karma Riuk
73b2a5b51b created threadpool 2025-02-05 15:17:10 +01:00
Karma Riuk
3f3017a389 removed useless comments 2025-02-05 14:41:23 +01:00
Karma Riuk
f768d16a7e removed en passant from move 2025-02-05 14:41:16 +01:00
Karma Riuk
a658673d2b remove castle side from move 2025-02-05 14:36:00 +01:00
Karma Riuk
222adbb8f0 removed the is_capturing flag of move 2025-02-05 14:25:35 +01:00