nealwu / bugchess Goto Github PK
View Code? Open in Web Editor NEWBug chess online!
Home Page: http://bugchess.com
Bug chess online!
Home Page: http://bugchess.com
The socket ID isn't consistent; for example when the servers crashes and restarts, the socket ID changes client-side even though the user is able to reconnect.
The main place where this is used is io.js
(specifically gameSeatToSocket
), but there may be other places as well.
All timers should stop changing once the game is finished
Store the end time of the game when it finishes
Users should have max of two seats, and only on the same side. Likely also want to limit the number of different games to join simultaneously.
Right now the alerts pop up and block all other actions, and they even come up before the chess boards are fully loaded and block the loading.
Might want some kind of space right above the boards for status.
For example, a server restart would currently lose seat information (not saved to DB) and chat history (not loaded from DB).
Things that need to be included here:
To do these two things, just need to load the objects gameSeatToName
and chatsForGame
on server start.
db.loadGame
, need to add the game creator when calling saveGame
Right now you can still see the private games in the "new games" list
Taps and drags too
register.js
can't find the function doesUserExist
.
People might not be aware of the timer and the piece bank.
Could add some type of shaking effect when a player is using up a lot of time. Also might want to redesign the bank so that instead of designating a piece with ": 1", the bank starts out empty and adds a piece at a time.
Could add some type of shaking effect when a player is using up a lot of time.
Need to go look over the code again for rotations
Instead of designating a piece with ": 1", the bank starts out empty and adds a piece at a time, as an array.
Timer colors (red vs. black) and status messages (Out of time! or Checkmate!) do not rotate properly with the rotate button
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.