ross's notebooks

  • GM state hashing - /ross/rr-gm-state-hashing
    Last edited 7 years ago
    var Hashids = require('hashids') var hashIDs = new Hashids("this is my salt") var CHOICES = { interests: ['MUSIC', 'SPORT', 'FILM'], animals: ['CAT', 'DOG', 'MATT'], other: ['one', 'two', 'three'], more: ['x', 'y'] } var STATE = { interests: 2, animals: 0, other: 1, more: 7, }