MCPcopy Index your code
hub / github.com/ShrimpCryptid/Secret-Hitler-Online

github.com/ShrimpCryptid/Secret-Hitler-Online @v1.0.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0.0 ↗ · + Follow
317 symbols 873 edges 50 files 133 documented · 42% updated 2mo agov1.0.0 · 2023-08-21★ 23837 open issues

Browse by type

Functions 258 Types & classes 59
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Secret-Hitler-Online

A fan-made web adaptation of Secret Hitler, a social deduction board game for up to 10 players by Goat, Wolf & Cabbage. You can play it with friends at secret-hitler.online!

The Game

In the game, players are divided into Liberals, Fascists, and one secret Hitler. The Liberals must work together (or not) to discover the secret Hitler hiding in their midst, all while the Fascists try to elevate the secret Hitler to power. Pass policies to achieve victory and unlock presidential powers to investigate your friends.

Can you find and stop the Secret Hitler?

How to Play:

Go to secret-hitler.online and open a new lobby! Use the lobby's code or the provided link to invite your friends. You can play with up to 10 players at once!

There are instructions on how to play the game provided on the website, and plenty of helpful tips are provided for first-time players. You can read the full rulebook here.

Technical Specs

The Java server is divided into the game simulation and the REST API. Communication between the server and client is done via websocket and HTTP requests, using the Javalin library.

The webpage is written in React, and features animations created with CSS. Assets were either adapted from the original board game or created using Inkscape.

Creative Commons License and Credit

Secret Hitler Online is licensed under Creative Commons BY-NC-SA 4.0, and is adapted from the original board game released by Goat, Wolf & Cabbage (© 2016-2020). (This project is not affiliated with or endorsed by Goat, Wolf & Cabbage.)

What's changed from the original?

Art assets from the game (the boards, policies, identity cards, etc.) were adapted for the website with some minor modifications. Custom assets (made in Inkscape) were added based on the style of the original, most notably for the election tracker, policy reveal popup windows, and the player icons. All of the base game's rules were kept as-is, but the web interface, animations, and server are new additions.

Report problems on the Issues page.

Core symbols most depended-on inside this repo

Shape

Method 216
Class 55
Function 42
Enum 4

Languages

Java56%
TypeScript44%

Modules by API surface

backend/src/main/java/game/SecretHitlerGame.java49 symbols
backend/src/main/java/game/CpuPlayer.java28 symbols
backend/src/main/java/server/util/Lobby.java24 symbols
backend/src/main/java/server/SecretHitlerServer.java18 symbols
frontend/src/player/PlayerDisplay.js16 symbols
backend/src/main/java/game/datastructures/Player.java13 symbols
frontend/src/player/Player.js12 symbols
frontend/src/App.js11 symbols
backend/src/main/java/game/datastructures/board/Board.java11 symbols
backend/src/test/java/game/testCpuPlayer.java9 symbols
frontend/src/custom-alert/RoleAlert.js8 symbols
backend/src/main/java/game/datastructures/Deck.java8 symbols

For agents

$ claude mcp add Secret-Hitler-Online \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page