jakeisnt / verde Goto Github PK
View Code? Open in Web Editor NEWmake a game with react!
License: GNU General Public License v2.0
make a game with react!
License: GNU General Public License v2.0
one button should subtract, as the buttons are '+1' and '-1'!
I don't think it makes sense to cache these, but these calculations shouldn't be repeated many times on the front-end.
"TODO: combination of useUser and useSocket hook that provides some user data"
Is this worthwhile?
to onboard people onto the project and encourage greater participation, documentation has to be enhanced and updated to ensure that people new to javascript, react, whatever they want to work on in this repository is easy to use and well documented
Currently, the state of each user is broadcast to every single user (or not at all). This is not ideal. Users need to be able to have some private state (for example, their hand in a game of cards), as well as a public state that is visible to everyone.
This requires:
Worth considering:
good starter game with motivation for extending the capability of the api
ie: client is loaded but the user doesn't have internet connection or the server isn't started, and the client isn't currently in a room
annoying to have to restart the nodejs server every time a change is made. would much rather just punch in the code and have it reload for us
more space efficient and much more quickly parsed
when the moderator ends the game, regardless of score the mod is displayed as the winner
the 'game.js' configuration object should have two optional fields to specify the minimum and maximum number of players for a game. the max number of players is min(moderator declared max, server declared max).
get error 'cannot read property clickedLast of undefined' when:
to reproduce (sometimes?):
it is currently a commonjs module and can likely be upgraded to use - at the least - consistent import and export syntax.
Store private game logic that can be seen by the game configuration language on the server side but not by any client.
currently, if the game is started by some player 'a', if some player 'b' joins the game and player 'a' doesn't take any actions, player b is shown 'waiting for the game to start...' rather than the current gameState, as the websocket hasn't sent the game state to player b yet
totally doable with the current game state, though may be annoying to implement the frontend
dependent on #34, as games can only have two players
when refreshing main page, url doesn't change, so any previous error (as stored in url) will still be shown. it's not necessarily relevant after a refresh so this might be cconfusing to users
this is likely because no players exist after the game is over, so there is no player to reference
quick fix - null checking more - has been made, but there is more to investigate here
not necessarily all of them - just ones people will play
switch to using winston from morgan
replace all console logs with calls to winston
hide all logging on frontend in prod, minimal on backend
after creating a game and clicking the '+1' button the score cannot drop below 0; likewise, if the '-1' button is initially pressed, the score cannot drop below 1, though '+1' and '-1' appear to otherwise function as intended in both scenarios
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.