From 528eafb6690d0dac0c7b897a1d5aa12461f56e17 Mon Sep 17 00:00:00 2001 From: Wuzzy Date: Tue, 11 Jul 2023 13:40:50 +0200 Subject: [PATCH] Chess: Remove comments about incorrect Chess rules --- src/chess.lua | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/chess.lua b/src/chess.lua index c17e76a..53c1dd3 100644 --- a/src/chess.lua +++ b/src/chess.lua @@ -1389,7 +1389,6 @@ function realchess.move(pos, from_list, from_index, to_list, to_index, _, player if blackAttacked then if thisMove == "black" then - --[(*)[ and meta:get_string("blackAttacked") == "true" ]] then return 0 else meta:set_string("blackAttacked", "true") @@ -1400,7 +1399,6 @@ function realchess.move(pos, from_list, from_index, to_list, to_index, _, player if whiteAttacked then if thisMove == "white" then - --[(*)[ and meta:get_string("whiteAttacked") == "true" ]] then return 0 else meta:set_string("whiteAttacked", "true") @@ -1409,8 +1407,6 @@ function realchess.move(pos, from_list, from_index, to_list, to_index, _, player meta:set_string("whiteAttacked", "") end - --(*) Allow a piece to move and put its king in check. Maybe not in the chess rules though? - lastMove = thisMove meta:set_string("lastMove", lastMove) meta:set_int("lastMoveTime", minetest.get_gametime())