Games Arena

Games I create will be available here to play

The slider Puzzle Challenge


Give it out a try and see. Good luck!




Were you able to win it? It's quite simple to win right? I did the game a few months ago. The game was created using Adobe Flash CS4 Professional. The game uses ActionScript 3.0. The algorithm behind the scene is quite deceptive. Even though you see that the number blocks are being generated randomly that is not true. First of all what I tried was to generate every cell randomly. But it gave no sign of success. The script did take a long time to finish. Because when you randomly assign each number to a random cell only the first few number get assigned quickly. The latter takes time to get assigned to a cell. The possible reason is that what the script assigns randomly is again a number that you have assigned earlier. Which is something that I have to omit. So the script keeps repeating until it gets an unassigned number. So, here's what I did.

The first number, a random number from 1-8 is generated on the first cell. Therefore the number on the first cell can be any any number within 1 to 8. Then script keeps adding numbers according to the following algorithm, which is not random. Let's take the number assigned on the first cell to be X. Then on the next cell it will display the number X+2, and on the next cell X+4 and so on. This is repeated until X is equal or greater than 8. and keeps counting back from 1, to fill up the remaining cells. Cells are filled with a step of 2. It is after creating the game it came to mind that this method is somewhat OK, than generating all the numbers randomly. Because if you generate all the numbers randomly, there is a chance for you to end up having just one cell to move to finish the game. In this algorithm it never happens. But if you keep on playing this game, there is a big chance for you to realize that there is just a pattern the cells have to be moved in order to finish the game and win. That is the main shortage I find in this game. But that is not a problem at all. Anyone can play it nicely and finish it. And sometimes the player might find this is a great game when they get to finish the game!

Wait a moment. It is not a time to finish reading this. To get off the problem on the above game, the ability to finish the game easily, this is what I did. I created the 4x4 grid game adopting the same principles from my above algorithm. Had to make some changes there as the grid is somewhat different. But It came to be a good solution. To say you, even though I created this game, I never had a time to play this game. I have seen the winning screen, but only when I design the game. So if you think you are smart at it, why not try it?




Happy solving!

If you think you need to have this on your side bar, YES! take it! Here's the code to embed this on your site. Change the height and width as you wish.

<embed align="middle" allowscriptaccess="always"  pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high" src="http://goo.gl/VGOXnJ" type="application/x-shockwave-flash" height="300" width="300"></embed>


You can download shockwave files here from the downloads page.

No comments:

Post a Comment