projects
/
vchess.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
A bit more flexibility in boards drawing
[vchess.git]
/
client
/
src
/
components
/
Board.vue
diff --git
a/client/src/components/Board.vue
b/client/src/components/Board.vue
index
0430c68
..
313564d
100644
(file)
--- 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",
{