基于Node + Express + MongoDB的實時多人游戲國際象棋服務器:
ChessHub.io是一個嘗試使用以下技術,開發一個不平凡的實時多人游戲Web應用程序。
Client side
- HTML5, CSS3, 推ter bootstrap and Font awesome to make a nice looking UI
- JQuery combined with the inevitable Javascript utilities (Lodash, Moment.js, Messenger.js and Highcharts) for client side logic
- Socket.io client to make real time gaming possible
- Chess.js and Chessboard.js for everything related to chess </ul>
- Node JS as Web server
- Express JS as Web framework
- Passport JS as authentication middleware
- Socket.io server to make real time gaming possible
- Handlebars.js to easily render HTML templates
- Mongo DB along with Mongoose </ul>
Server side
游戲邏輯
ChessHub.io uses a simple gaming sequence through Socket.io that works for 2+ players. Here is a simplified diagram of most relevant events:
Screen shots
Home page
Playing chess in real time
Watch live game
Real time monitoring dashboard

本文由用戶 jopen 自行上傳分享,僅供網友學習交流。所有權歸原作者,若您的權利被侵害,請聯系管理員。
轉載本站原創文章,請注明出處,并保留原始鏈接、圖片水印。
本站是一個以用戶分享為主的開源技術平臺,歡迎各類分享!



