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.

Java 7 Underscores in Numeric Literals PRO

As of Java 7, we can improve the readability of our code by adding underscores in between digits in numerical literals. package com.abelski.samples; public class SeparatorClass { public static void main(String[] args) { double num = 1_424_234.532; System.out.println(num); } } The following video clips overviews this code sample and shows its execution.

Pausing & Resuming Java Script Execution in Web View PRO

When executing code written in Java Script in our web view we would like to pause it when the user moves to another activity and resumes it when he returns. The following code sample includes two activities. The first activity includes a web view that executes code written in Java Script. The second activity is […]

Android Display Orientation PRO

When developing for the android platform we can create two versions for the same layout xml document and keep them separately within ‘layout’ and ‘layout-land’ folders. When the android platform executes our application it will automatically use the correct version in according with the display orientation. The following video clip shows that.

The sscanf Function in PHP PRO

This function allows us to extract values from a string that applies a specific pattern. Each place holder (e.g. %s) refers a specific value in our string. Each value that matches a specific place holder is assigned to a variable. We should pass over our variable to be assigned by the values that match the […]

The setlocale Function in PHP PRO

Calling this function we can apply a specific locale (combination of a language, a country and possible few more values) on our program. The first argument should be a constant that specifies on what do we want to apply the new locale (e.g. LC_NUMERIC will apply our locale on the decimal separator). The second argument […]

UML Free Tools INFO

I was recently approached by software developers who are looking for free UML tools. Assuming that you are looking for a tool that supports most of the UML 13 diagrams and assuming that you are looking for a tool that apart of the diagram it creates the model and allows you to generate code, I […]

XML DOM Parsing in Java PRO

JAXP (Java API for XML) provides us with the capability to parse XML documents using a DOM parser. The following code sample shows a simple parsing using the JAXP DOM parser. package com.abelski.samples; import java.io.IOException; import java.net.URL; import java.io.InputStream; import java.net.HttpURLConnection; import javax.xml.parsers.DocumentBuilder; import javax.xml.parsers.DocumentBuilderFactory; import javax.xml.parsers.ParserConfigurationException; import org.w3c.dom.Document; import org.w3c.dom.Node; import org.w3c.dom.NodeList; import org.xml.sax.SAXException; […]

The Android findViewById Function PRO

Most Android developers are fairly well familiar with the findViewById function our activity inherits from the Activity class. This function receives the ID number of a specific View resource the activity user interface includes. If you ever try to call that function before calling the setContentView function (our activity inherits from the Activity class) then […]

HTML5 Relational Database INFO

HTML 5 provides us with a relational database running on the web browser. This relational database supports SQLite sql syntax. The following code sample checks whether the web browser supports the HTML 5 relational database. <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> <title></title> </head> <body> <script type=”text/javascript”> if(window.openDatabase) { document.write(“support”); } else […]

Writing to Java Script Console PRO

We can easily track our code in Java Script by writing text messages to the Java Script console. The following code sample shows how to do it. <!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01 Transitional//EN” “http://www.w3.org/TR/html4/loose.dtd”> <html> <head> <title></title> <script type=”text/javascript”> var sum = 0; for(i=1; i<=10; i++) { sum+=i; console.log(“i=”+i); console.log(“sum=”+sum); } document.write(“sum=”+sum); </script> </head> […]

Update cookies preferences