Commit Graph

82 Commits

Author SHA1 Message Date
LinlyBoi
f6ebf19ef4 my first if let statement :D 2023-05-06 20:26:47 +03:00
LinlyBoi
1c8aa43983 refactor to adjust for playstates 2023-05-06 18:04:32 +03:00
LinlyBoi
5bebf782eb play state and menu state are separate now 2023-05-06 17:50:59 +03:00
LinlyBoi
e42a30a4c6 RED/BLU? more like P1 P2 2023-05-06 13:57:39 +03:00
LinlyBoi
01b8d7fb15 when I come to look back at this...in 2 days 2023-05-06 12:57:49 +03:00
LinlyBoi
f896fc1c3a I am stopdid with indexes 2023-05-06 12:57:19 +03:00
LinlyBoi
cd4ee43e9b mouse position function 2023-05-06 12:24:37 +03:00
LinlyBoi
080452137e game state struct 2023-05-06 12:24:29 +03:00
LinlyBoi
95108e1323 cargo fix my beloved 2023-05-06 11:49:57 +03:00
LinlyBoi
f31f259715 working circle drawing :D 2023-05-06 11:37:38 +03:00
LinlyBoi
89dc143f1a silly TODO comment 2023-05-06 11:25:49 +03:00
LinlyBoi
06c1131267 added circle coordinate function 2023-05-06 11:25:24 +03:00
LinlyBoi
b61e95aa19 removed pooopy unused thiongs 2023-05-06 10:54:45 +03:00
LinlyBoi
baa61a1f04 CENTERED THE THING (grid up next) 2023-05-06 10:54:34 +03:00
LinlyBoi
3e1d265857 more resources :D 2023-05-06 10:53:59 +03:00
LinlyBoi
cbf08728f4 board started :DDD 2023-05-06 10:45:51 +03:00
LinlyBoi
36ab67bfff minimax hotfix (logical erros oops) 2023-05-06 09:00:16 +03:00
Linly
a02f8241ce Merge pull request #2 from LinlyBoi/mini-max
Mini max
2023-05-05 22:13:55 +03:00
LinlyBoi
1e5c0656f1 ??? 2023-05-05 22:12:15 +03:00
LinlyBoi
9797a4daaf minimax done :D 2023-05-05 21:59:43 +03:00
LinlyBoi
c8be17a26a variable to store last move added for AI moves 2023-05-05 21:59:38 +03:00
Linly
bd5daa17f1 Merge pull request #1 from LinlyBoi/score_checking
Score checking
2023-05-05 16:11:23 +03:00
LinlyBoi
75e946d9ee Cleaned up commented code, get_wins and get_streaks are now separate :D 2023-05-05 15:56:43 +03:00
LinlyBoi
f23e147a20 skeleton for minimax (pls help) 2023-05-05 15:45:58 +03:00
LinlyBoi
3a6829b5b6 adjusted the tests to new column and rows :DDDD 2023-05-05 15:45:47 +03:00
LinlyBoi
c3f53436a9 flipped column and row numbers (i forgor) 2023-05-05 15:45:36 +03:00
LinlyBoi
9f6f97cc70 _ makes the thing not yell at me 2023-05-04 22:52:19 +03:00
LinlyBoi
b16b95a5c7 imports needed 2023-05-04 22:52:09 +03:00
LinlyBoi
85e022f0fb moved to the tests file 2023-05-04 22:52:02 +03:00
LinlyBoi
0959ff00e6 not hardcoded oop 2023-05-04 22:51:53 +03:00
LinlyBoi
c1eac620fe Sequences and Win tests passed :D 2023-05-04 21:16:06 +03:00
LinlyBoi
63242e1bce moved heuristic test to its own file 2023-05-04 21:15:26 +03:00
LinlyBoi
ced0fd48a0 why do these keep pooping up pls 2023-05-04 20:17:42 +03:00
LinlyBoi
fef292c69d heuristic potential wins pass :D 2023-05-04 18:47:18 +03:00
LinlyBoi
6b4aa377a0 partial eq for disk 2023-05-04 18:47:07 +03:00
LinlyBoi
ef5a6f7ee3 started the testing :D 2023-05-04 17:04:50 +03:00
LinlyBoi
9146f5be0b feat: heuristic calculations (need tests) 2023-05-04 14:08:44 +03:00
LinlyBoi
1e45e93a68 swapped one raylib sample for another 2023-05-03 00:12:11 +03:00
LinlyBoi
6e8fed68fd removed silly comments 2023-05-03 00:11:56 +03:00
LinlyBoi
e016d5f358 heuristic scan (needs tests) and constants 2023-05-03 00:11:50 +03:00
LinlyBoi
8d07cbb51d idkmanpls 2023-05-02 21:35:22 +03:00
LinlyBoi
f41b868752 death to indices 2023-05-02 21:35:15 +03:00
LinlyBoi
ead76cef1a heuristic file oh boy 2023-05-02 20:35:04 +03:00
LinlyBoi
5af5885746 comment out dbgs 2023-05-02 19:13:19 +03:00
LinlyBoi
e4bd4ae903 test to ensure that diagonal scores are ensured 2023-05-02 19:08:12 +03:00
LinlyBoi
dc6cdff378 diagonal added to legal moves 2023-05-02 19:08:05 +03:00
LinlyBoi
ace98c4e3f one test for the one test 2023-05-02 18:37:32 +03:00
LinlyBoi
769d40af39 refactored scores to make sense and check on each insertion :D 2023-05-02 18:37:24 +03:00
LinlyBoi
09899d5a82 accidentally switched up indices 2023-05-02 18:37:14 +03:00
LinlyBoi
f9f150ef5f funny comment 2023-05-02 17:59:59 +03:00