Commit graph

17 commits

Author SHA1 Message Date
jake
60d509bcbf 'points' AI now knows of en passant and how to do it correctly 2023-03-01 13:56:52 -05:00
jake
fb3f5d1394 add ai movement based on 'points' gained/lost 2023-02-24 20:38:00 -05:00
jake
265b50e1de make sure AI knows that only pawns can kill en passant pawns 2023-02-21 21:58:44 -05:00
jake
43faa277bb add weighted movement for ai, so it'll intentionally capture things 2023-02-21 20:16:17 -05:00
jake
da75e49e23 added purely random ai (doesn't care if it gets checked or not) and made some changes so that AI can do castling and en passant kills. 2023-02-21 17:27:52 -05:00
jake
e31a2fd04f correctly calculate checkmate.
move check_for_promotion() at the very start of new turn.

add green color for MoveTile.gd (for showing map control)

add some functions that show board control.

modify some functions so that they will use 'text_board' rather than the player presented board.
2023-02-21 13:32:39 -05:00
jake
5163f85f12 added checkmating. also touched every function to support this, and added a few more too 2023-02-19 21:06:13 -05:00
jake
1a5368956f en_passent -> en_passant 2023-02-19 11:10:41 -05:00
jake
f381c51566 (rebase this), pawn no longer prints "must attack" 2023-02-19 10:59:00 -05:00
jake
27314b008d pawn's correctly update control board 2023-02-19 04:27:15 -05:00
jake
76b16ada7a pawn promotion (to queen) 2023-02-19 04:06:56 -05:00
jake
573909c7d7 complete castling rules, note if a king is checked, added 'control' boards for each team, added turn counting (based on piece movement) 2023-02-19 03:21:43 -05:00
jake
74580ebfa9 appese debugger warnings and remove/change unneeded/unused code 2023-02-18 17:23:22 -05:00
jake
dc24d163a2 (rebase this) en passant fix 2023-02-18 16:54:16 -05:00
jake
d98b313006 en passant bug fix; don't check out of bounds 2023-02-18 16:48:07 -05:00
jake
4b9191e481 Add en passant and castling 2023-02-18 16:41:27 -05:00
jake
ece682cacb Initial Commit 2023-02-17 14:37:23 -05:00