Showing posts with label smartphone. Show all posts
Showing posts with label smartphone. Show all posts

Tuesday, July 21, 2020

How do I solve the puzzle 2048

The game 2048 is an entertaining one, despite its simple rules. You can play it from your internet browser in many websites by searching 2048 in any search engine, or by installing an app in your smartphone.

I'm sure that better strategies can be found, but this is what worked for me: Maintain always the biggest numbers in a line at one side of the board, in ascending order, for example:


Having this, all you have to do is increase the numbers of this line in a progressive way, in ascending order, avoiding separate the line from the border and maintaining the biggest number in the corner, so you can use the rest of the space to work.

In order to maintain this structure, is important to have this line complete with different numbers all the time, so you can move the rest of the numbers without affecting it. If the line is altered, as when is temporarily shortened at the minor side after merging two numbers, or if you are forced to separate the line from the border, the structure must be recovered as soon as possible, filing the gaps and restoring the order to make it easier.

I hope this advice helps you to enjoy it even more. Happy game!

Sunday, July 24, 2016

Simple ToDo-List Javascript application for the smartphone

I wrote a simple ToDo-List application in Javascript to use it in the smartphone. To try it, you need to download the todo-list.html file and then open it with your web browser (Note: not every smartphone lets you open correctly the downloaded HTML files):


It is just a HTML document that "saves" the items as parameters in the web browser address. This approach gives me persistence, Undo and Redo operations for free, just having it opened in a tab of the web browser (Note: it will work only if your web browser is configured to remember your opened tabs). Enjoy it!