Commit Graph

310 Commits

Author SHA1 Message Date
Wuzzy
8610d1e88f Make red curtain darker 2024-03-08 12:37:05 +01:00
Wuzzy
4a10d2f68c Make trampoline a nodebox, add bottom texture 2024-03-08 12:27:24 +01:00
Wuzzy
7b391dd8f3 Chess: Fix game not end if checkmate by promotion 2024-03-07 22:40:09 +01:00
Wuzzy
0d8afaff76 Fix 'initial_properties' warning 2023-12-27 21:57:46 +01:00
Wuzzy
672d8ac2f7 Change recipe for stone/desert stone tile 2023-08-05 22:05:11 +02:00
Wuzzy
82333bd707 Fix possible crash with stairsplus 2023-07-29 18:08:57 +02:00
Wuzzy
5a96e4a09d Workbench cut: Reduce waste if reaching stack_max 2023-07-21 17:25:30 +02:00
Wuzzy
2e8b95dffe Add bowl of soup into Creative Inventory 2023-07-21 16:12:35 +02:00
Wuzzy
76cc2fad77 Add extra tooltip for hammer 2023-07-21 16:11:45 +02:00
Wuzzy
abbc3719d4 Workbench: Can exchange hammers in repair slots 2023-07-21 16:05:36 +02:00
Wuzzy
b16c2bc70b Workbench now repairs all tools w/o disable_repair 2023-07-21 15:55:42 +02:00
Wuzzy
729959a477 Workbench doesn't repair w/ disable_repair=1 group 2023-07-21 15:42:12 +02:00
Wuzzy
0096b18d8e Workbench can now cut cushion block and cabinet 2023-07-21 15:40:05 +02:00
Wuzzy
4b91ac377b Workbench now cuts nodes w/ only slab/stair 2023-07-21 14:52:20 +02:00
Wuzzy
6f6def81e1 Only xdecor/default nodes can be cut
Technically, this was already the case before due to
weird loading order, but now it's explicit.
2023-07-21 14:00:29 +02:00
Wuzzy
8da385a61a Chess: Move debug label to the right 2023-07-21 09:37:27 +02:00
Wuzzy
34e5f2d577 Allow chessboard dig during bot vs bot match 2023-07-21 09:30:32 +02:00
Wuzzy
086a4e8f41 protection_bypass allows to dig chessboard always 2023-07-21 09:27:54 +02:00
Wuzzy
24ef28e0a5 Chess: Fix player unable to resign sometimes 2023-07-21 09:15:16 +02:00
Wuzzy
5b6970e94a Rename stone/wood_tile to stone/wood_tile_x
To fix naming collision with moreblocks stairs and slabs
2023-07-20 00:48:49 +02:00
Wuzzy
e2788cad12 Chess: Hide moves list element if empty 2023-07-19 20:30:59 +02:00
Wuzzy
286ad00b84 Chess: Add messages for common invalid moves 2023-07-19 20:27:44 +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
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
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
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
Wuzzy
ef65e86547 Chess: Fix AI pawn doublestep safe from en passant 2023-07-16 09:35:09 +02:00
Wuzzy
5e97bd81b7 Chess: Fix en passant may put own king at risk 2023-07-16 08:48:45 +02:00
Wuzzy
e28f2a1844 Chess: Refactor en passant implementation 2023-07-16 08:36:19 +02:00
Wuzzy
f88aa3a4aa Chess: Fix incorrect temrminology (rank vs file) 2023-07-16 08:06:19 +02:00
Wuzzy
8808645384 Chess: Add promotion to notation 2023-07-15 17:43:25 +02:00
Wuzzy
4bfec061bb Chess: Tweak notation spacing 2023-07-15 16:54:58 +02:00
Wuzzy
2ef3d97c7a Chess: Fix broken loss of castling rights 2023-07-15 16:48:00 +02:00
Wuzzy
36e2aab3b6 Chess: Dead position detection (material only) 2023-07-15 16:35:11 +02:00
Wuzzy
c4348ac20e Chess: Fix broken promotion 2023-07-15 10:15:45 +02:00
Wuzzy
820f4238a0 Chess: Refactor figurine string 2023-07-15 10:06:24 +02:00
Wuzzy
78106fe9e4 Chess: Abort promotion when resigning 2023-07-15 08:28:18 +02:00
Wuzzy
fabfc35579 Chess: Improved chess figurines for notation 2023-07-15 08:23:24 +02:00
Wuzzy
cede0534eb Chess: Fix crash if AI is in check 2023-07-14 22:42:42 +02:00
Wuzzy
e316e77846 Chess: Better way to detect moves list length 2023-07-14 22:31:28 +02:00
Wuzzy
d580074ea8 Chess: Fix another missing checkmate detection 2023-07-14 22:14:06 +02:00
Wuzzy
edb0ed7cbf Chess: Fix notation of "files" (chessboard rows) 2023-07-14 19:08:34 +02:00
Wuzzy
c2f641ab62 Chess: Fix incomplete checkmate detection 2023-07-14 18:36:12 +02:00
Wuzzy
769f867ab1 Chess: Refactor coordinate notation 2023-07-14 17:30:40 +02:00
Wuzzy
04dabe4091 Chess: Add castling to possible moves detection 2023-07-14 16:12:52 +02:00
Wuzzy
74f8dc3bf9 Chess: Refactor castling check function 2023-07-14 16:05:47 +02:00
Wuzzy
da68b34c49 Chess: Add en passant detection for possible moves 2023-07-14 14:56:37 +02:00
Wuzzy
db80dd58db Chess: Detect checkmate and stalemate (kinda) 2023-07-14 01:47:53 +02:00
Wuzzy
fb081e5411 Chess: Can choose color to play against "AI" 2023-07-13 00:22:15 +02:00
Wuzzy
a4a6b1005e Chess: Teach "AI" to play as White 2023-07-12 23:53:31 +02:00
Wuzzy
3e8a155895 Chess: Fix "New game" button 2023-07-12 21:30:08 +02:00
Wuzzy
8f339206ca Chess: Add resigning button 2023-07-12 20:56:06 +02:00
Wuzzy
a3aa10b179 Chess: Change button color 2023-07-12 13:48:59 +02:00
Wuzzy
aa7d414a27 Upgrade chess formspecs to version 2 2023-07-12 13:35:54 +02:00
Wuzzy
8671eb68bc Remove a Chess TODO because I disagree :P 2023-07-12 11:46:23 +02:00
Wuzzy
00e5af5e34 Chess: Fix AI crash 2023-07-12 11:37:09 +02:00
Wuzzy
c99e2efe09 Simplify some chessboard messages 2023-07-12 11:30:15 +02:00
Wuzzy
0d9af7803a Chess: Make time message translatable 2023-07-12 11:11:48 +02:00
Wuzzy
d6497ab42b Chess: Tweak UI in starting game mode 2023-07-12 11:04:26 +02:00
Wuzzy
92bcdbc717 Fix crash if AI has no moves left 2023-07-12 08:54:30 +02:00
Wuzzy
fdcb958f37 Chess: Fix broken notation on some king moves 2023-07-12 08:35:46 +02:00
Wuzzy
d23c3d0ce2 Chess: Fix check detection not working 2023-07-12 08:29:26 +02:00
Wuzzy
4b7da45045 Chess: Let player select pawn promotion 2023-07-12 01:27:55 +02:00
Wuzzy
077b7d66b8 Chess: Fix AI moving king into attacked squares 2023-07-11 17:59:06 +02:00
Wuzzy
d834d41c41 Chess: Add support for more game results 2023-07-11 17:30:52 +02:00
Wuzzy
44f75850dc Chess: Fix game-breaking inventory handling bugs 2023-07-11 15:39:41 +02:00
Wuzzy
5f9601300c Chess: Return empty table if no possible moves 2023-07-11 13:47:25 +02:00