domschiener / peered Goto Github PK
View Code? Open in Web Editor NEWPeered: P2P Gaming with Bets. Powered by WebRTC and Ethereum
License: MIT License
Peered: P2P Gaming with Bets. Powered by WebRTC and Ethereum
License: MIT License
Make it possible for users to find new games through peers instead of the server.
When a player disconnects or reloads the browser, make a 5minute reconnect time. Display this message in both in games section (my current games) and in the current game screen for the opponent.
Currently peerjs is limited to one game per window, as a new window would request a new PeerID, which is against the current design of Peered. Therefore we need to come up with a solution so that people can play multiple games.
The only way I can imagine this work right now is if the PeerJS object is stored in localstore and continuously accessed when opening new browser windows. This obviously needs to be researches about its weaknesses. Anyone has some ideas?
If a user is randomly trying to connect to a peer without joining the game, break up the connection.
If creator of game, delete game from the database. If game is currently ongoing, do not quit.
Right now we are rendering the TicTacToe game through data from the server. should we switch to purely client side through the local collection? I have certain problems with that (mostly about consistency).
Under a game, make it possible for players to chat with each other.
One of the problems I can see happen is people connecting to peers and sending them invalid play moves. Of course we do a lot of sanity checks on play moves, but I think it would perhaps be smart to implement PKI for signed messages. This way the two players playing against each other know the exact origin of the play moves.
What do you guys think?
Do browser check before loading game - suggest better browser if possible and abort process if Browser not compatible with WebRTC.
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.