Game Instructions

Tap a tile to toggle its color. When a tile changes nearby tiles may change as well. Each move affect multiple tiles. The target is to turn all tiles into yellow in the fewest steps possible.

Press 'j' to show/hide the game. Press 'i' to show/hide the instructions. Press 't' to show/hide the top score table.

Steps: 0

Top Scores

Name Steps
Press J to toggle the game, I to toggle instructions, and T to toggle the top scores

Congratulations!

You solved the puzzle in 0 steps!

Success!

Score submitted successfully!

Error

Failed to submit score. Please try again.

Hammer.js Jump Start PRO

The Hammer.js JavaScript library allows us to handle gesture touch events that take place when running our code on a touch screen device.

The following code sample shows how simple it is to use this library. You just need to pass over the name of the gesture touch event you want to handle and the function you want to be invoked when that event takes place.

<!DOCTYPE html>
<html>
<head>
    <title>hammer.js demo</title>
    <script src="hammer.min.js" type="text/javascript"></script>
</head>
<body>
    <div id="something"><h1>something</h1></div>
    <script type="text/javascript">
        var element = document.getElementById('something');
        Hammer(element).on("drag", function(event) {
                                        alert("drag!");
                                    });
        Hammer(element).on("tap", function(event) {
            alert("tap!");
        });
    </script>
</body>
</html>

The following video clip overviews this code sample, shows its execution and explains it step by step.

You can find more video clips, code samples and various other training material for learning how to use this JavaScript library in my free courses web site at http://abelski.lifemichael.com.

Share:

The Beauty of Code

Coding is Art! Developing Code That Works is Simple. Develop Code with Style is a Challenge!

Update cookies preferences