A web app for fulfilling the moderator role in the Salem 1692 card game
The game Salem 1692, published by Façade Games is a game in which some of the players are witches, plotting to murder the innocent villagers.
The game has day and night phases. During the night phase, all players need to close their eyes so that the witches can secretly choose a victim. Ideally, the night phase makes use of a moderator. However, this moderator cannot also be player.
This app takes on the role of moderator, so that all human participants can be players. It also allows to connect to the game with multiple smartphones, so that players don't have to reach across the table to take a vote.
- ReScript
- Spice (replaces
Decco) - React
- Firebase Realtime Database
- Git Subtree
- src/ ReScript source files
- dist/ Compiled files and web root
- lib/ Workdirectory for compiler
- doc/ Dialogue scripts
- database/ Firebase rules and example data
- GNU make
make all
Output files will be put in dist/
For running locally, a webserver may be started with:
make serve
It is possible to add the desired language setting in the query string using any of the language codes from LanguageCodec, for example:
- Chrome 99
- Chrome for Android 99
- Firefox 98
- Firefox for Android 96
- Safari 15.4
- Safari on iOS 15.4
- Edge 99
- Android Browser 99
- Samsung Internet 16
- Opera 83
Debugging output (in the browser console) can be obtained by changing the User-Agent string to contain the text "Salem/1692".
How to do this on: Chrome, Firefox/Edge, Safari.