Commit Graph

834 Commits

Author SHA1 Message Date
Wuzzy
b72a2cb9c4 Update README WRT Chess 2023-07-19 20:45:13 +02:00
Wuzzy
e2788cad12 Chess: Hide moves list element if empty 2023-07-19 20:30:59 +02:00
Wuzzy
cd09f6008c Update German 2023-07-19 20:28:30 +02:00
Wuzzy
89f69580b5 Update locale files 2023-07-19 20:28:04 +02:00
Wuzzy
286ad00b84 Chess: Add messages for common invalid moves 2023-07-19 20:27:44 +02:00
Wuzzy
930915ea64 Update German translation 2023-07-19 20:22:38 +02:00
Wuzzy
88ac8eb805 Update locales 2023-07-19 20:21:59 +02:00
Wuzzy
45347c5961 Chess: Better color selection in singleplayer 2023-07-19 20:20:49 +02:00
Wuzzy
5ee5c3000f Chess: Fix gray corners of UI 2023-07-19 19:41:47 +02:00
Wuzzy
512f22504a Make name signs on chessboard UI larger 2023-07-19 19:39:38 +02:00
Wuzzy
bb6ffed947 Fix German typo 2023-07-19 19:32:03 +02:00
Wuzzy
f5fdb5b3f9 Fix wrong Chess gameResult check 2023-07-19 19:08:39 +02:00
Wuzzy
70c4475eed Allow to reset chessboard when game is done 2023-07-19 19:07:35 +02:00
Wuzzy
f511bd1950 Chess: Make board diggable if game completed 2023-07-19 19:06:27 +02:00
Wuzzy
76f5285a56 Translate to German 2023-07-19 19:03:05 +02:00
Wuzzy
86f0048630 Update locale files 2023-07-19 18:43:26 +02:00
Wuzzy
3ac79a05e5 Rename chess help file 2023-07-19 18:42:13 +02:00
Wuzzy
9fd4bafee7 Chess: Simplify checks for king safe moves in bot 2023-07-19 18:00:07 +02:00
Wuzzy
2828e5644a Chess: Refactor king safe moves function 2023-07-19 17:52:13 +02:00
Wuzzy
90feb42d52 Chess: Remove dark formspec background
So the chat messages are more readable
2023-07-19 17:33:36 +02:00
Wuzzy
9e8474f320 Chess: Improve draw claim interface 2023-07-19 16:54:30 +02:00
Wuzzy
3faa0317da Chess: Show message when a draw claim was false 2023-07-19 15:33:10 +02:00
Wuzzy
d91d00d431 Chess: Fix draw claim check being too aggressive 2023-07-19 14:55:36 +02:00
Wuzzy
a0c5a8e459 Add CHESS_RULES.md 2023-07-19 14:51:12 +02:00
Wuzzy
5cbcd833c5 Rename same position rule to threefold repetition 2023-07-18 02:41:23 +02:00
Wuzzy
5e2bd7f85e Chess: Restrict the 'same position' rule even more 2023-07-18 02:35:23 +02:00
Wuzzy
95b28937d7 Chess: Restrict 'same position' rule a bit 2023-07-18 01:58:30 +02:00
Wuzzy
05be3093d5 Rewrite the special draw rules texts 2023-07-18 00:30:25 +02:00
Wuzzy
21bcfeada2 Implement 50-move rule and same position rule 2023-07-17 21:54:56 +02:00
Wuzzy
7c27bb75ed Partially implement 50-move rule & 'samepos' rule
Using textures from PixelBOX
2023-07-17 19:36:47 +02:00
Wuzzy
fa762dded5 Set is_ground_content=false for most nodes 2023-07-17 16:15:03 +02:00
Wuzzy
6a68def01d Refactor: xbg -> xdecor.xbg 2023-07-17 16:00:05 +02:00
Wuzzy
ecf9af4f85 Make 'realchess' table private again 2023-07-17 15:54:07 +02:00
Wuzzy
6a19130042 Chess: Move bot code to its own file 2023-07-17 15:17:52 +02:00
Wuzzy
fbd55700e0 Chess: Verify position history in debug mode 2023-07-17 14:26:08 +02:00
Wuzzy
f843797f81 Chess: Refactor timeout 2023-07-17 13:50:03 +02:00
Wuzzy
5f113037e3 Chess: Fix bot failing to move king out of check 2023-07-17 13:26:48 +02:00
Wuzzy
063e346e7b Chess: Refactor chat messaging and botname display 2023-07-17 11:59:49 +02:00
Wuzzy
5f210286bf Chess: Fix eaten pieces list being wrong sometimes 2023-07-17 09:46:51 +02:00
Wuzzy
d7b681e1b9 Chess: Add debug function to verify eaten list 2023-07-17 09:27:13 +02:00
Wuzzy
eed9e3b04b Chess: Add hidden bot vs bot mode for debug 2023-07-17 08:46:03 +02:00
Wuzzy
4d43874b87 Chess: Rename "AI" to "bot" 2023-07-16 20:16:57 +02:00
Wuzzy
6c9d60ca1d Chess: Implement "5-times same position" rule
This rule draws the game if the same position appeared 5 times
(FIDE Laws of Chess Jan 2023, article 9.6.1)
2023-07-16 19:49:47 +02:00
Wuzzy
2e28acf00e Chess: Align notation move no. to the right 2023-07-16 15:12:51 +02:00
Wuzzy
bccaf00e64 Implement 75-moves rule 2023-07-16 14:55:25 +02:00
Wuzzy
3dbb283231 Chess: Implement halfmove clock (no effect yet)
For the 50-move and 75-move rules
2023-07-16 13:51:02 +02:00
Wuzzy
3fbc705a3f Chess: Add a minimal debug mode 2023-07-16 12:55:07 +02:00
Wuzzy
22eb1334fe Chess: Fix loss of castling for wrong rook move 2023-07-16 11:59:55 +02:00
Wuzzy
8e55eb49b0 Chess: Teach "AI" to promote (again) 2023-07-16 11:48:50 +02:00
Wuzzy
c1bb45d8b2 Chess "AI" now uses move function like the player 2023-07-16 11:06:19 +02:00