Giter Club home page Giter Club logo

secret-hitler's People

Contributors

andy013 avatar beebieduck avatar bruno623 avatar chen-robert avatar cozuya avatar dependabot[bot] avatar evanmnjd avatar hexicube avatar invidiash avatar iounpaladin avatar jbasrai avatar jonnybest avatar jthemphill avatar kvonn avatar lordvader9988 avatar max1071 avatar mooira avatar nch0w avatar nthtensor avatar portujules avatar prathamdesai13 avatar sadnixon avatar samfuller01 avatar sayeghr avatar se-bastiaan avatar snyk-bot avatar spyro9955 avatar stevenruidigao avatar themeeman avatar vigasaurus avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

secret-hitler's Issues

Universal game log

In advance of the upcoming player profile (#17) and global stats features, I'd like to start storing games with full logs of every turn.

Example of the data model:

summary: {

players: Map[Int, String]
logs: Array[log]

}

log: {

// election
president: Int
chancellor: Int
votes: Array[Boolean]

// policy enaction
presidentHand: { red: Int, blue: Int }
chancellorHand: { red: Int, blue: Int }
enactedPolicy: String

presidentClaim: { red: Int, blue: Int }
chancellorClaim: { red: Int, blue: Int }

// actions
policyPeek: Array[String]
investigation: { id: Int, claim: String }
specialElection: Int
execution: Int

}

In this way, every part of the game is documented. Games can be analyzed posthumously as more stats are added. Games can even be potentially played back.

Feature: Player profiles

I'd like to work on a feature that introduces "player profiles", a way to start cataloging games and related statistics.

Here's a concept I mocked up (in paint):
secret hitler stats

If you think this is a good idea, I'd like to start building it out.

Player should see own color in the player bar

Good suggestion from the chat. Every now and then even experienced players think they're liberal when they're actually Hitler. Right now, the player's own name is green, but this problem can be fixed by coloring the player's own name according to his role. What do you think?

screen shot 2017-05-25 at 2 50 36 pm

Whitelist for private games

Players seated in private games will be able to whitelist (via modal) logged in players so that they can seat in that game without the password. This feature is in lieu of any type of private messaging feature.

Will be included in 0.1.10.

gameplay on ipad

I noticed when playing on an ipad that the policy cards are faced down on the board, and are faced down (after a moment of being able to view them) during selection as president and chancellor.

if you happen to glance away at the wrong moment, its impossible to know what policy you are selecting/discarding.

the L/F logos on the board also appear above the special rules/instructions on the board too.

will add a screenshot later.

Server issues

Thanks for this site, the games are a blast to play.

The biggest issue that I see is the server crashes and resets frequently and unpredictably. When this happens, users are forced to reload the page, log in again, and start up new games.

I don't know of any way to reproduce a server crash. However, my theory is that duplicate inputs are causing the game to reach an illegal state. I say this because before some crashes I've noticed the server reporting multiple game actions. For example, I just played a game where a random card was to be flipped from the top of the deck, but multiple cards were flipped instead.

Could this be the main issue or do you have any other clues to why this is happening?

Feature: automated claim system

Intent here is that after a player makes a claimable action:

  • is president, receives and then discards 3 policies
  • is chancellor, receives and enacts 1 policy
  • is president, does policies powers

An icon appears which pops up a new modal with buttons that are clickable that does a new type of chat (different color) to the groupchat so that people can make note of it/don't have to type out "3 fascist" over and over.

Planned release: 0.1.11.

Feature: Replays

Probably going to work on this next. Now that we're collecting full game data, we can let players playback games from their history.

Sound effect?

Hello, I'm a big fan of Secret Hitler, thanks for making an online version.
I believe that this online version is perfect, but it has one thing missing, which is sound effect.

Adding a sound effect to the game will change it drastically, it makes it feel more alive. Adding some calm or mysterious music that fits the theme of the game seems good also.

I think that adding sound effect every time a policy has been implemented or every time a player is executed or in all other cases makes the game feel more realistic in my humble opinion.

In case someone doesn't want to hear the sound effect or music, they can simply turn it off whenever they feel like.

Thanks for reading, looking forward to hear from you. ๐Ÿ˜ƒ

MacOS chrome displays flipped cards incorrectly.

Hi!

I am having some strange glitches on Chrome 55, Mac, when I am observing a game (which have started a long time ago and has some cards on the track).

Here is a pic:

screen shot 2016-12-06 at 00 16 57

Here is DOM for one card:

<div class="enactedpolicies-card-container flippedY inplace liberal4">
    <div class="enactedpolicies-card front"></div>
    <div class="enactedpolicies-card back liberal"></div>
</div>

Removing first inner <div> from the DOM makes things right (i can see a card face).
Adding/removing flippedY class from outer div triggers animation but in the end I always get mirrored back of the card.

When I observe the same game in Firefox it works fine.

People are able to join the same game twice

Recreation steps are unknown, however, I suspect it is a result of delay in responding to clicks and therefore 2 clicks are registered. A screenshot can be provided if needed. There is an abandoned lobby currently with the player shooflypi being registered twice from the same browser.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.