Code Monkey home page Code Monkey logo

twohue's Introduction

About TwoHue

Twohue is a one-player color mixing game. Players are presented with a color sample that they must recreate using two transparent color swatches from a set of several swatches.

The front end twohue is created with React. The back end leaderboard server is created with Node/Express. See the repo for the server here: https://github.com/snphillips/twohue-leaderboard-server

I use the color library chroma.js to dynamically create unlimmited game rounds,

View deployed game here: http://twohue.surge.sh

How to Play

The player is presented with a brief introduction to the game and a "start" button.

The player is shown:

  • a circle containing the target color,
  • a set of smaller color swatches, two of which are the solution,
  • outlines of two overlapping large circles(like a Venn diagram).

The player selects the two colors they believe mix to create the target color. Points are assigned based on how few attempts the player solves the round in. Fewer tries = more points. The goal of the game is to win as many points as the player can before loosing six rounds.

Getting Started

note: the backend server for the leaderboard can be found here: https://github.com/snphillips/twohue-leaderboard-server

clone this repo:

git clone https://github.com/snphillips/twohue.git

get into the correct directory:

cd twohue

run npm to install all the dependencies:

npm install

start the server:

npm start

your browser should open to http://localhost:3000/ !

Made With

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.