The above generators are HTML compatible gameplay tools for the online game: Town of Salem.
Each generator opens in its own small window.
Town of Salem is a popular online social-deduction style game, similar to such party games as "Mafia" or "Serial Killer" or "Werewolf." It is a game of guile and subterfuge in order to take control of a town. Evil roles need to hide their true identity, often requiring them to fake a legit role in the town.
One often-faked town role is the Psychic, which receives a vision that contains at least one guaranteed evil player, or one guaranteed good player. Instead of making these numbers up myself in order to fake claim, I considered the constraints and requirements and decided to make a glorified random number generator to fake the role of Psychic.
I first made this program with Node
, which allows quick entering of numbers by the user with the keypad. Screenshots of its use are below. I then adapted it to HTML
, which can be accessed on the left side of the screen.
I also made a tool for playing as the Pirate, which requires you to choose a player to plunder, and essentially play rock, paper, scissors to see who wins. Again it relies on custom random number generators and customized content.
The player number is excluded from visions, as well as any "dead" numbers entered by the user. The vision types are specified, or ENTER
simply redraws new numbers.
Building on the same number validation system, with an added directive-generator, the pirate program tells you who to plunder and whether to use the scimitar, rapier, or pistol against them.