Commit graph

83 commits

Author SHA1 Message Date
6302ed8b55
fix text padding 2022-12-05 00:23:32 +01:00
68c7f2824a
add winrate test 2022-12-04 21:05:28 +01:00
f278a49f66
update tests 2022-12-04 19:33:09 +01:00
a4cdd53081
better tests! 2022-12-04 19:17:16 +01:00
155d212a85
better test 2022-12-04 18:57:33 +01:00
afcf0f07a4
add tests 2022-12-04 18:25:35 +01:00
652b718b2b
init: tests 2022-12-04 18:06:01 +01:00
30e5aed2e0
add cli interface 2022-12-04 17:53:24 +01:00
12c20f5805
Add a comment 2022-12-01 18:58:28 +01:00
670ab29be4
add const keyword 2022-11-28 21:06:59 +01:00
4c00f961fd
use alphabeta bc he is swag 2022-11-21 00:41:20 +01:00
79613e27bc
add alphabeta algorithm 2022-11-21 00:40:53 +01:00
eb3b64ac5e
typo 2022-11-21 00:27:02 +01:00
e2e44f7f2c
remove dead code 2022-11-20 23:54:52 +01:00
9aef6e223d
free memory 2022-11-20 17:08:17 +01:00
870b5c2b16
hint only for humans 2022-11-20 17:07:55 +01:00
e81c8cbe28
FINALLY !!!!!! 2022-11-20 15:50:55 +01:00
18d633b382
fix list removal of token 2022-11-20 15:44:32 +01:00
52841ecaac
fix copy 2022-11-20 14:30:16 +01:00
8ed2c694fe
exactly follow the course..? 2022-11-19 18:14:03 +01:00
32007bd44b
follow course 2022-11-19 17:15:37 +01:00
7cbca7bffb
add info about the missing token 2022-11-19 17:15:16 +01:00
2338e83df9
move copy of the game to the game source file 2022-11-19 17:15:05 +01:00
9d3e8b0914
more minimax stuff 2022-11-19 15:50:58 +01:00
573f35d246
* impl list copy
* select stream when printing list
2022-11-19 15:50:43 +01:00
3b45f4cde9
* show token
* minimax as black
2022-11-19 15:50:18 +01:00
99fa3af788
start minimax impl 2022-11-19 11:40:52 +01:00
5630568c89
add min and max 2022-11-19 11:40:39 +01:00
f3f8cb9293
add.. something? 2022-11-18 17:09:15 +01:00
11a77f5331
remove useless include 2022-11-18 16:53:54 +01:00
e72ec34803
add minimax files 2022-11-18 16:49:19 +01:00
507695d621
refactor: .h 2022-11-18 16:35:36 +01:00
48afc879b3
check if play is legal 2022-11-18 16:09:04 +01:00
8653ef4d83
fix print of linked list 2022-11-18 16:08:47 +01:00
7e00f37208
* display fullname of player
* print the final board at the end
2022-11-18 16:08:37 +01:00
6cbf0fc507
fix exploit 2022-11-18 15:17:24 +01:00
c7141b1b8e
* add possibilites in a dedicated struct
* add somes fixes?
2022-11-18 15:15:18 +01:00
571dee4435
print list 2022-11-18 15:08:37 +01:00
960eec10c3
start at the middle whatever the size of the game 2022-11-18 14:32:52 +01:00
7e075e654b
fix linked list 2022-11-18 14:25:00 +01:00
4c66a67694
why am i doing that 2022-11-18 14:22:25 +01:00
5ef1f3fd98
add some game logic 2022-11-18 13:56:01 +01:00
633b76be01
refactor 2022-11-18 13:55:48 +01:00
7fc4214b1a
* add fn about the play itself
* update comments
* ask the human player to play something
* hide temporarly unused args warning
2022-11-17 23:25:09 +01:00
f214991a8b
add uppercase fn 2022-11-17 23:17:45 +01:00
37c9fb3445
newlines 2022-11-17 22:24:23 +01:00
36a73d74ad
typo 2022-11-17 22:14:04 +01:00
2eae2e2f1e
* select the winner
* check if move playable
2022-11-17 22:01:25 +01:00
0d24785b3e
add some fn 2022-11-17 21:07:17 +01:00
2a2d2c4dd6
add some fn 2022-11-17 20:53:06 +01:00