Giter Club home page Giter Club logo

board-game-skeleton's Introduction

Board Game Skeleton

Build an online board game to play with your friends.

This is not a framework or a library. It is all the code I needed to build a couple of online board games except for the game itself. The idea is that throwing together a new online board game is as simple as cloning this repo and filling out the Game React component and Game class on the server. The rest of the code here handles server setup, creating and joining game rooms, switching teams, choosing a leader for each team (e.g. a Codenames clue-giver, or a Taboo guesser, etc), waiting until a game has enough players and leaders to start, chat, and so on.

The code here is intended to be as simple as possible to edit, not to be fully production-ready or polished. Assumptions:

  • The game has two teams, with at least two players on each team
  • One player on each team is the 'leader' or has some similar special role
  • Only the leader can end turns

See Codenames and Taboo for some rough working examples.

Deployment

You should be able to auto-deploy your game on Heroku directly from the git repo. If you want to use your own infra, it's just a node.js process - go nuts.

Development

yarn install

Run yarn start to start the backend server.

To develop on the frontend client, run yarn build --mode=development to build the frontend bundle. Webpack will watch for changes but you will have to refresh.

Run yarn lint to autofix linting errors.

board-game-skeleton's People

Contributors

seangoedecke avatar

Stargazers

Sean Goedecke avatar

Watchers

James Cloos avatar  avatar

board-game-skeleton's Issues

test

$$C_{1}$$

$$C_{1} B_{}$$

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.