220 Commits

Author SHA1 Message Date
Karma Riuk
959ecdeb7d added the opponenent pawn attack map move better ordering 2025-02-16 09:29:50 +01:00
Karma Riuk
adf21ee021 minor stuff 2025-02-09 21:18:51 +01:00
Karma Riuk
989225c2d7 fixed bugs 2025-02-07 20:08:25 +01:00
Karma Riuk
aef6fc39e3 fixed slight bug 2025-02-07 19:39:52 +01:00
Karma Riuk
2260cd918a implemented promotion for white 2025-02-07 19:39:51 +01:00
Karma Riuk
3bc5b75f1e implemented v4 that resolves all the captures
after looking at the next two moves (all of them)
2025-02-07 19:14:09 +01:00
Karma Riuk
377e5dfdcc implemented move ordering to improve on alpha_beta
pruning
2025-02-07 18:24:57 +01:00
Karma Riuk
10de9828be implemented alpha beta pruning 2025-02-07 17:49:08 +01:00
Karma Riuk
9942832b18 caching check and nlm 2025-02-07 17:35:14 +01:00
Karma Riuk
5b45fc32c0 annoying 2025-02-07 16:18:11 +01:00
Karma Riuk
d28008d913 committing to stash and compare 2025-02-07 15:08:53 +01:00
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