From 535c464b0543306a0ea36c66f07dcfad7a951efc Mon Sep 17 00:00:00 2001 From: Benjamin Auder Date: Wed, 1 Jun 2022 17:21:20 +0200 Subject: [PATCH] Add Hex: almost fine, still some issues with SVG + rescaling --- app.js | 35 ++--- base_rules.js | 79 ++++++----- common.css | 8 +- variants.js | 2 +- variants/Absorption/class.js | 1 - variants/Atomic/class.js | 12 +- variants/Balanced/class.js | 2 +- variants/Benedict/class.js | 1 - variants/Cannibal/class.js | 2 +- variants/Capture/class.js | 2 +- variants/Crazyhouse/class.js | 2 +- variants/Cylinder/class.js | 2 +- variants/Dark/class.js | 2 +- variants/Doublemove/class.js | 2 +- variants/Hex/Hex_board_centered.svg | 28 ---- variants/Hex/Regular_hexagon.svg | 9 -- variants/Hex/class.js | 202 +++++++++++++++++++--------- variants/Hex/rules.html | 5 + variants/Hex/style.css | 7 + variants/Madrasi/class.js | 9 +- variants/Progressive/class.js | 9 +- variants/Recycle/class.js | 12 +- variants/Rifle/class.js | 2 +- variants/Teleport/class.js | 2 +- variants/Zen/class.js | 2 +- 25 files changed, 246 insertions(+), 193 deletions(-) delete mode 100644 variants/Hex/Hex_board_centered.svg delete mode 100644 variants/Hex/Regular_hexagon.svg create mode 100644 variants/Hex/rules.html diff --git a/app.js b/app.js index 17fe770..c0c74c0 100644 --- a/app.js +++ b/app.js @@ -136,7 +136,7 @@ function prepareOptions() {
- ` + select.options.map(option => { return `