Code Monkey home page Code Monkey logo

codenames-redux's Introduction

codenames-redux

ok, a redux learning project that implements the great boardgame Codenames. Very fun IRL, let's see how far we can go with redux.

So far, there is a barebones, terminal-centric UI for entering commands, and a simple HTTP server for viewing Spymaster and Guesser versions of the current game.

Usage

run npm test to start the game. Type commands like give clue foo 2 to give foo 2 as a clue. Visit localhost:1337 for the guesser view. I recommend putting this on a second computer and letting the guessers stare at it.

The main computer should be used for the spymasters. Put a watch curl localhost:1337/spymaster in one terminal, and leave the game process with the readline interface in another terminal. Have the guessers relay their guesses to the spymasters, who do all the computer input.

Here's how it looks:

Playing in "single-game mode" in the terminal: playing the game

The start of the web ui: wow material ui quite nice

Slack bot

the slack butt is at version 1.0! It works!

slack screenshot

You'll need to grab a new slack token for this bot, since it's a stand-alone bot (no Hubot support, sorry). Get one from your Slack team's website. Then,

$ npm install -g codenames-redux
$ codenames-redux-slack-bot PERSIST=/path/to/db/dir SLACK_TOKEN=asfajdjfds

For everything to work correctly, you should also upload all the custom emoji used by the bot for drawing the board. Here's how my slack emoji settings look: emoji

You can find all the emoji in the images directory in this repo.

PLEASE PLEASE PLEASE open a Github issue with suggestions for improvements or bug reports!

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.