I ported my Score4 game to TypeScript/React
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
html
src
LICENSE
Makefile
README.md
css_maker.py

README.md

Introduction

Blog post about this code can be read here.

I finally found some time to play with ReactJS... and to make it even more interesting, I added TypeScript to the mix,.. and ported my Score4 Javascript game to ReactJS.

The result? Awesome, state-driven rendering of the tiles (using CSS for everything, abandoned Canvas and silly edge detections).

Overall, very happy with the result! :-)

Installation

You need a really recent TypeScript - I used...

$ npm install typescript@next

...to get:

$ npm list | grep typescript
typescript@1.6.0-dev.20150905

After that, just...

cd ReactJS-Score4
make

This will use your Python installation to serve the resulting files from http://localhost:8000 ; go there and play the game!

The page shown is actually the page from my blog - so the links in there will only work properly viewed from here. But you can play the game anyway - just click on any of the board tiles.

Enjoy!