Git Product home page Git Product logo

fill_in_the_blanks_server's Introduction

Fill in the Blanks logo

Fill in the Blanks game server

This application contains a PHP websocket server for a 'Cards Against Humanity' style game.

Client

The lastest version of the client is available for anyone to use at http://fillintheblanks.rbwebdesigns.co.uk/game.php however it is down to individuals to host the game server as described below.

Server requirements

Hosting a server

  • Clone repo
  • Run composer install
  • Download or create card pack(s)
  • Copy to /card_packs folder
  • Copy config_default.json to config.json and set correct server variables
    • port - port number to use
    • cards_path - absolute path to directory where the decks of cards are saved on the server
    • host_user - user name for the game host - anyone who enters the game with this name will be the host, if left blank defaults to the first person that enters the lobby.

Starting the game server

  • Open a terminal
  • Change into project root directory
  • Run command php start-server.php

fill_in_the_blanks_server's People

Contributors

dependabot[bot] avatar mrtomek avatar rbertram90 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fill_in_the_blanks_server's Issues

Game host has button to skip vote

If the player choosing the winning card for the round is AFK, there is no way for the host to force the game to continue until they've chosen.

Winner picked by committee mode

Have an option which changes the game from 1 judge and everyone else playing to everyone playing and a vote for the round winner.

Will need to decide what to do in the event of a tie.

Improve config access

Dynamically defining constants is throwing up errors in VS Code, which needs reviewing.

Possible solutions:

  • Convert config from constants to using $_ENV
  • Create a config wrapper class that can check if a variable is set and handle if not

Free type question cards

Add a game mode where a designated player types in the text for the question card that will be used in the next round.

Possibly providing a default value. Make sure to validate it contains between 1 and 3 sets of underscores!

Add option to choose card pack(s) on game start

Currently the deck of white and black cards are fixed, would be nice to be able to choose from a selection of decks populated from the files within the card_packs directory when setting up game.

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.