Giter Site home page Giter Site logo

bingo-board's Introduction

Pull request bingo game Build Status js-standard-style

This is a game where people use Pull Request to submit numbers for bingo. A Gamemaster will merge Pull Requests, and upon merge, the numbered file added to the repository becomes the next number called.

How it works

As a Gamemaster

  1. Fork the repository
  2. Make on one commit to trigger a pages build (add the first number for example)
  3. Share this URL with all the players: http://your_username.github.io/bingo-board
  4. Decide the range of numbers for a board (150 or 1100)
  5. Every player should go to http://your_username.github.io/bingo-board/board.html to create a bingo board based on the range
  6. You merge Pull Request as they come in, ideally in the order they come in
  • Verify that the file is a JSON file that lives in _data/numbers.
  • Verify that there is no more than one file.

As a player

  1. Fork the game repository (not this one, but the one from the Gamemaster)
  2. Add an empty JSON file with your preferred number as the file name to your fork in _data/numbers, like 47.json
  3. Submit a Pull Request to the game repository
  4. Wait for your number to be merged by the Gamemaster
  5. Click on a number to mark it as called
  6. Go back to 2!

Development

This is a Jekyll site, numbers are from the data files.

Running the app

# Install Jekyll from the github-pages gem
$ gem install github-pages
# Serve the website, which will live on localhost:4000 by default
$ jekyll server -w

Playing alone

  1. Set up your bingo board at /board.html

  2. Open / for numbers

  3. Use fun-script.js and pass in a maximum number (50 or 100) to generate random numbered files every 5 seconds. For example:

$ node fun-script.js 50
  1. Mark numbers as they are called until bingo

Restart

  1. Delete all the files in _data/numbers

  2. Clear localStorage by doing

localStorage.removeItem('numbers')

in the console

License

MIT

Maintainers

@muan & @jlord

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.