Skip to content

sopra/GPRandomizer

Repository files navigation

GaiaProject Setup Randomizer

Randomizer to setup GaiaProject. This project is a challenge to develop a web system using Vanilla JavaScript without major frameworks.

Usage

  1. Access https://sopra.github.io/GPRandomizer/
  2. Choose Player number and click "setup" button.
  3. If you want to share the board, click "hide" button and capture a screenshot. (The board shows again if you click it.)

Development

Prerequisites

  • Node.js
  • npm

Installation

npm install

Build

The project uses Gulp to build source files from src/ to docs/.

npm run build

Directory Structure

  • src/: Source code (Edit these files)
  • docs/: Generated production files (Do not edit directly)

Permalink Parameter Spec

variable value type sample value value spec description
PLAYERS integer 4 2-4 Player number.
FED integer 0 0-6 Federation Tile index.
ADV integers (comma separated) 0,1,2,3,4,5 0-14 Advanced Technology Tile. Order is left to right (from Terraforming Tech to Science Tech).
BAS integers (comma separated) 0,1,2,3,4,5,6,7,8 0-8 Basic Technology Tile. Order is left to right (from Terraforming Tech to Science Tech). Last 3 numbers are Free Technology.
RND integers (comma separated) 0,1,2,3,4,5 0-9 Round Tile. Order is left to right (Round 1 to Round 6).
FIN integers (comma separated) 0,1 0-5 Final Score Tile.
BOO integers (comma separated) 0,1,2,3,4,5 0-9 Round Booster Tile. If 2 players, input at least 5 values. If 4 players, input at least 7 values.
MAP integers (comma separated) 0,0,1,60,2,120,... (odd-index) Map Tile Number.
(even-index) tile's degree. It MUST be a following number[0, 60, 120, 180, 240, 300].
[TileNumber, TileDegree],[TileNumber, TileDegree]...
Ignore 9Tile or later when 3Player Board. Also ignore 8Tile or later when 2Player.

Copyright

Design and Images (c) Lenrok

Randomizer scripts (c) sopra

About

Setup Randomizer for TerraMystica GaiaProject.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published