Skip to content

Moderator PWA for the card game Salem 1692

Notifications You must be signed in to change notification settings

ruittenb/salem-1692

Repository files navigation

Moderator PWA for the card game Salem 1692

A web app for fulfilling the moderator role in the Salem 1692 card game

Screenshots

Rationale for this App

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.

PWA Hosting

Technologies Used

Directory Structure

  • src/ ReScript source files
  • dist/ Compiled files and web root
  • lib/ Workdirectory for compiler
  • doc/ Dialogue scripts
  • database/ Firebase rules and example data

Prerequisites

  • GNU make

Building

make all

Output files will be put in dist/

Serving

For running locally, a webserver may be started with:

make serve

Features

It is possible to add the desired language setting in the query string using any of the language codes from LanguageCodec, for example:

Supported Browsers (minimal versions)

  • 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

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.

About

Moderator PWA for the card game Salem 1692

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published