pichfl / decknamen Goto Github PK
View Code? Open in Web Editor NEWPlay Codenames with your friends.
Home Page: https://dn.ylk.gd
Play Codenames with your friends.
Home Page: https://dn.ylk.gd
Polling might be a safer choice ¯_(ツ)_/¯
Somehow when I joined with Chrome it added two players instead of one. I could only control one, there was no way for anybody to remove the unusable player, but it remained in game for the whole time.
How about having an option to remove other players? At least for the leads or for the person who created the session
The icons are neat but make it much harder to test and deploy as well as impossible to make the repo public.
Consider converting icons to svg-jar or plain inline-svg
Seems mobile browsers will not keep the websocket alive, which is a bummer.
I tried to work with two different rooms to separate players and game state, but it doesn't make sense to keep them separate. The moment the cards are added, the player state may no longer be modified and it's much easier to check that sync in a single state object.
Also, it makes sense to have a single representation based on an concurrency task, with the substates being represented by readOnly getters.
Automatic removal of players seems to be more confusing and problematic than anticipated.
Developing the API locally requires Redis now. You can use the Heroku or any other Redis instance at will, but you need to know how.
Textfield with the current game URL/token and a button to copy it to the clipboard for sharing.
I think it has something to do with my naive state merging/creating approach
If a game is in progress, nobody else can join. Show an error screen instead of redirecting them to the index page.
Major screens
(No more wikis on free Github 😞)
Right now you end up in the game over screen in an unknown state. That's not good.
..., Dealer, Dèjá-,Vu, Delta, ...
After restating a game with the same players, my Safari and Firefox controlled the same player in game.
Using the first two letters of the locale should be fine for most cases for now.
We have multiple word lists, it should be possible to select the "edition" before starting the game.
I suggest we add a simple <select>
to the lobby screen that any player can change until the "start game" button is pressed, which should obviously lock in the selection
There seems to be an error with the player name sometimes ending up empty. to change that, we should check and copy over the local player name on reconnect.
Leaving the browser tab on a phone scrambles the connection.
There should be an event that can be used to trigger a sync when the window becomes active again.
Right now it is possible to read the game state in plain text which makes it easy to cheat by simply looking at the socket communication which sends around the game state (boooh to those who try that). Running a simple cypher could help to stop that. of course it can still be decoded, but it involves an extra step. ¯\_(ツ)_/¯
Any opinions?
update
Should be much easier now that we have the lobby inside Redis
Seems one of the locks doesn't quite resolve
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.