cozuya / secret-hitler Goto Github PK
View Code? Open in Web Editor NEWA web adaptation of the social deduction board game Secret Hitler. https://secrethitler.io
License: Other
A web adaptation of the social deduction board game Secret Hitler. https://secrethitler.io
License: Other
Reproduction steps: no idea.
Fixed in 0.1.11.
Does not appear to crash the server though...
Not sure what's happening here (at least its not crashing the server), but definitely ugly in the console and preventing observers from chatting properly. Some would say thats not a bad thing..
Self explanatory, should be a relatively easy fix.
Will be careful with this one but I think it'll be fine because everyone wants to win and the best way to do that is to play with newbs. If this gets too popular/newbs get locked from playing I'm taking it out.
Slider component in usual place, update mongo User modal, etc. Should be easy.
It appears that users don't check the announcements on the front page too often. This became more apparent to me when I saw a lot of people today confused about the colored names. Maybe we can have an abridged version of the announcements visible on the /game page with a link to the full release notes.
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.
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.
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.
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?
In progress games are listed below completed games.
Intent here is that after a player makes a claimable action:
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.
Feedback from a user, haven't verified this one yet.
Probably going to work on this next. Now that we're collecting full game data, we can let players playback games from their history.
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. ๐
.
Still happening now.
Failed to grab a screenshot as I was observing and only noticed after game was over by reading chat.
You can rewrite any players password by simply signing up, entering his username and the new password.
i.e. remove React.createclass.
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:
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.
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.