Skip to content

alexcavalli/chroma-tiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Chroma Tiles

A game where you try to make all the tiles the same color.

See it here!

FAQ

What is this.

This is just a toy app to play with/learn React and Redux and a bit of CSS as well.

How do I run it?

There's a demo here.

Run locally via:

npm start

Though this really doesn't need a backend, it's all frontend code.

Now what?

It's a game, kinda. Clicking a tile cycles the color/state of the tile through the number of cycles the game is configured with. It will also cycle all tiles that are in-line with the clicked tile, in any dimension. The goal is to cycle all the tiles to a single color. I can guarantee that this is possible for blue, but I haven't done the math on other colors.

How do you know it's possible for blue?

The tiles start all blue and are shuffled by making lots of random plays (actually, reverse plays, but that really doesn't matter). Since they all start blue, you can always get them all back to blue by cycling them enough times to put them all at the initial cycle value. That is, if there are three colors, clicking any tile three times is a no-op, independent of any other clicks that happened between the three clicks on that tile. Once again, since they start all blue, they can be returned to all blue.

How do you make it harder?

Adding dimensions and increasing the size of dimensions with only two colors is a good way to produce a challenging game.

Reducing the depth to 1 (running a 2D game) with 3 cycles is also fairly challenging.

I have found a 3D game with 3 cycles to be an exercise in frustration.

How do you make it easier?

See above - reduce number/size of dimensions (marginal difficulty change), or reduce number of cycles (significant difficulty change).

Credits

This project was bootstrapped with Create React App.

Lots of help was obtained from the React Express tutorial/guide.

Roughly followed David Walsh's guide for making tiles "flippable" via CSS.

Followed Lynn Wallenstein's Guide for making a centered modal.

About

A game with color-changing flipping tiles!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published