I ported my Score4 game to TypeScript/React
HTML TypeScript CSS Python Makefile
Permalink
Failed to load latest commit information.
html Set upper limits Sep 20, 2015
src Great improvement in clarity, by switching state from class to interf… Sep 21, 2015
LICENSE Import in GitHub Sep 12, 2015
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!