Code Monkey home page Code Monkey logo

hexliterate's Introduction

Hexliterate

Hexliterate is a fun game: each player opens it with their browser (ideally on their phone). A random color is shown on the screen and everyone must guess the closest hexadecimal code for this color!

Screenshot

Try it online

A demo is running at https://hex.s10a.dev/

Run with Docker

docker run -p 8000:8000 -v hexliterate:/var/data ssimono/hexliterate

The little server is powered by the great websocketd and you can pass extra options to it via environment variables with WSD_ prefix. Ex: WSD_LOGLEVEL=debug will pass --loglevel=debug to websocketd

Run from source

  1. Install the requirements: websocketd and node js
  2. git clone and cd into the project
  3. Build the assets with make (use watch make rebuild upon changes)
  4. Launch the server with make up
  5. Open http://127.0.0.1:8000

You can also open /debug.html?phones=2 to simulate multiple phones

hexliterate's People

Contributors

ssimono avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

hexliterate's Issues

Joining games as a spectator

If a game is started before I have joined, I can still join after the fact, but will be kicked out when the participating players are finished. No idea what happens if I submit a color before i'm kicked out, but it probably still wouldn't take me into account.

Scoring is very counter-intuitive.

Players appear to rank higher even though the 1-norm and 2-norm vector distances do not justify that. Sometimes even the human perception of the colors they chose appears to be further from the target color than those of other players.

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.