X-Git-Url: https://git.auder.net/?p=vchess.git;a=blobdiff_plain;f=client%2Fsrc%2Fcomponents%2FBoard.vue;fp=client%2Fsrc%2Fcomponents%2FBoard.vue;h=313564d210cf7e84f3eaa6e65bf3b7e1458c6011;hp=0430c68fe2c2e528b7323ed59bde9e71109997b8;hb=157a72c805261f68aa1adcd4776debf965d7e6cd;hpb=5fa88038b667df426472ef6f1ba5555320eaa1a4 diff --git a/client/src/components/Board.vue b/client/src/components/Board.vue index 0430c68f..313564d2 100644 --- a/client/src/components/Board.vue +++ b/client/src/components/Board.vue @@ -171,7 +171,11 @@ export default { }) ); } - const lightSquare = (ci + cj) % 2 == lightSquareMod; + const oddity = (ci + cj) % 2; + const lightSquare = ( + (!V.DarkBottomRight && oddity == lightSquareMod) || + (V.DarkBottomRight && oddity != lightSquareMod) + ); return h( "div", {