Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/leoasis/enter-hangman

Hangman game made with React for a live coding session at Meetup.js Buenos Aires
https://github.com/leoasis/enter-hangman

Last synced: about 14 hours ago
JSON representation

Hangman game made with React for a live coding session at Meetup.js Buenos Aires

Awesome Lists containing this project

README

        

# Enter Hangman

Hangman game made with React for a live coding session at [Meetup.js Buenos Aires](http://www.meetup.com/Meetup-js).

This is a showcase of some cool ideas and concepts that I found useful when working with React and Flux.

You can find these ideas in a more production-ready shape in https://github.com/gaearon/redux

## How to install

`npm install`

## How to run

`npm start` and go to `http://localhost:3000`

## Functions available in the window object

* `copyActions`: returns a `JSON.stringify`-ied list of actions performed in the current session, which you can copy and paste in another tab with the game running to replay.
* `replayActions`: receives a stringified list of actions (returned by `copyActions`) and replays that list of actions to reflect the same final state of the session from which you copied those actions.
* `undo`: Undoes the last action performed.
* `redo`: Redoes the last undone action. You can keep redoing all undone actions.