Can you come up with an idea of an application that uses only buttons and pop-ups?

You can imagine a lot of games using just these functionalities.

The can’t-get-enough-of-it Tic-Tac-Toe

We also have the good ‘ol famous Minesweeper.

Minesweeper game-over sample
Minesweeper game-over sample
The classic of the 1960s, MINESWEEPER!

Minesweeper is a single-player puzzle video game. The objective of the game is to clear a rectangular board containing hidden “mines” or bombs without detonating any of them, with help from clues about the number of neighboring mines in each field. The game originates from the 1960s and has been written for many computing platforms in use today. It has many variations and offshoots.

Head here to know more.

So, if we dive into the basics of the BlackBox behind the working of this classic we get that it uses the buttons on-screen which are represented as unvisited blocks and the visited blocks will represent a number, if being devoid of mines, with aforementioned clues. The principle behind the same is just keeping track of the buttons being pressed on which the clues further depend. And once if a press coincides with a mine then you’re way-off, and all the other hidden mines have then been displayed, the fact being its game-over.

Coming to think of it, this super addictive fun-piece was just the imaginative usage of only buttons and pop-ups! Just their application being slightly far fetched.

Undertaking this discussion I just had an idea of a childish app!

Suppose we have a grid that only displays simple buttons much like the ones in the Minesweeper, but hidden from the naked eye will be the fact that behind some of these buttons are trees, and some have nothing to hide. Now, suppose a person presses a button and that button has nothing to hide, there’s no score, but what happens when someone hits a tree? Well, on hitting a tree-hiding-button, it sets a fire! This fire will burn all the trees which are relational with the tree hit on, row-wise, column-wise and diagonal-wise. The total number of trees burnt to the number of trees total on the board will be the defining score with a game over on achieving the same. On achieving a game over, it might look like this:

A sample view for our first considered scenario

If looked closely, then you’ll notice that that board is of 10x10 dimension, and had 41 total trees before any button was pressed. Now, suppose we press any button, whose location is represented by the flames, our score lands on 11/41. Now there were two more possible scenarios for the same, the first one being the best case where if we pressed any button which comprises of the 29 trees linked together in accordance to the rules, giving a score of 29/41 or if you’ve pressed the button in the second last position in the last row containing the last tree, then alas, you’ll land with a 1/41.

This game can be made more fun with a wholesome class of animations and whatsoever, but the kids will probably get addicted. Come to think of it, this game primarily consists of only slightly imaginative use of buttons and display effects, hence the fact is that even the simplest feature can also result in a certain combination giving us a series of wonderment. Might as well get started on it!

Code Enthusiast