209 Commits

Author SHA1 Message Date
Karma Riuk
86beb9cc85 renamed v1_simple to v1_pure_minimax 2025-02-07 15:08:10 +01:00
Karma Riuk
8edde1a8b1 caching checks and no legal moves 2025-02-07 14:15:10 +01:00
Karma Riuk
182d183247 committing to stash and compare 2025-02-07 14:02:56 +01:00
Karma Riuk
1b14ed693d made small opti 2025-02-07 12:04:20 +01:00
Karma Riuk
a80fc9482d base for testing optimization 2025-02-07 11:08:59 +01:00
Karma Riuk
88b2d01cf8 made v1_simple multithreaded again 2025-02-07 10:03:37 +01:00
Karma Riuk
979d44fad0 fixed small bug 2025-02-07 10:03:32 +01:00
Karma Riuk
db87c2ec8b minor stuff 2025-02-07 09:52:37 +01:00
Karma Riuk
f3e28d2646 found better terminal condition for v1_simple 2025-02-07 09:52:09 +01:00
Karma Riuk
7e888bba61 made v1_simple single threaded because it was
getting messy
2025-02-07 09:51:49 +01:00
Karma Riuk
1d83c066f6 made v0_random thinking longer 2025-02-07 09:51:22 +01:00
Karma Riuk
2764787e63 made v1_simple look 4 moves into the future, it's
parallelized
2025-02-07 00:34:22 +01:00
Karma Riuk
c71cabb3cd fixed tests 2025-02-07 00:29:49 +01:00
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