Coder Social home page Coder Social logo

hotc's Introduction

HOTC: "Heart of the Cards"

Server for Topdeck

By Jeremy Banka

Technologies Used

  • 🖋 TypeScript
  • 📦 Node.js
  • ⏭ Express.js
  • 🔌 Socket.io
  • 🧊 Webpack 5
  • 🃏 Jest
  • 🛠️ Eslint Airbnb

Description

Host a rich multiuser card gaming simulation between several react web clients.

Minimum Viable Product

  • Play Hearts together online.
  • Server holds game state as source of truth.
  • Client presents the game visually from your perspective.
  • Secrecy. No peeking at other players’ cards, or attempts to track the state of play by remembering ids. (information comes from the server fully redacted of private/hidden state).
    • Note: this does not imply automated “rule enforcement” per se (this is out of scope), only that secrecy is implemented seriously. 'Illegal' player actions (e.g., suddenly drawing a bunch of cards from the main deck) are not blocked but are publicly ‘on the record'. For now, rules must be socially enforced.
  • Authentication. Only one client/socket per player account.

Primary Stretch Goals

  • Meta-signaling. See the current focus/mouseover of other players.
  • Catch-up. If a player drops from the game and can’t receive emitted events, re-entering the game will fast-forward through the events they missed.

Secondary Stretch Goals

  • Working with React Mouse Position+Emotion to create a great right-click experience on the client.
  • Developing a robust hotkeys system on the client with React Hotkeys.
  • Maybe some kind of drag-and-drop system for 'picking up' cards in the client
  • Add another similar game besides Five-Card draw, probably Texas Hold ‘Em.

Setup/Installation Requirements

  • gh repo clone jeremybanka/hotc OR git clone https://github.com/jeremybanka/hotc to download the repo
  • cd hotc to enter the repo folder
  • npm i to install necessary development dependencies to node_modules
  • npm run start to run the server
  • npm run test to see coverage and tests

Known Bugs

  • none identified

License

GPL ^3.0

Contact Information

hello (at) jeremybanka (dot) com

hotc's People

Contributors

jeremybanka avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.