Log inGet started
Package

spaces.module

README.md

boardKit.spaces

What every space on a boardKit track does, and the seeded generator that lays them out. Fifteen kinds (Spaces.LIST): normal, start, finish, boost (Tailwind, forward n), back (Mud Patch, back n), skip (Nap Spot, miss a turn), card (Fortune, draw a card), again (Lucky Roll, another turn), swap (Switcheroo, swap with the leader), warp (Warp Gate, jump to a linked space), safe (Safe Haven), toll (Toll Gate, pay n coins), bonus (Treasure, collect n coins), ladder and slide (climb grid links).

Spaces.layout(track, { seed, special = 0.4, types = {...}, weights = {...}, overrides = { [5] = "boost", [9] = { type = "warp", to = 20 } } }) returns one { type, n?, to? } per space. The same seed always gives the same layout. Names are forgiving: Spaces.resolve("roll again") is "again".