Yeah, I may have a bug somewhere, happens a lot for me unfortunately. There are two provided animations. The first I may have messed up is supposed to be max turned squares per move. The second animation is supposed to make maxium advance towards other side per move, that later algo tends to solve the patterns faster. But no doubt not as fast as the unknown optimum solution. Unfortunately I'm kind of stuck now. Got to have some coffee and try again later.
Happy Weekend!
Last edited by Jonax; 19-03-2022 at 04:15 PM.
Hi guys!
After some polishing the updated Grayout program is completed. Now always solvable becuase the available number of steps are given by a new non optimized algorithm. In most cases you can probably beat that algorithm. I hope this will be the final version but one never knows what new issues may come up.
The Linux (Debian) version can be downloaded from:
https://www.jonax.se/downloads.php
And below is the animated gif. Thanks to SilverWarior for help.
Why hoping this is the final version? There are still few possibilities for improvement:
- You could increase the number of colors and thus increase complexity of the puzzle
- You could introduce addition gravity mode where player clicks on any block which clears that block and any adjunct block of the same color and all of the blocks of the cleared area then falls down.
- You could introduce logging of player steps so he could undo some of its steps and then chose a different path.
- You could introduce some sort of a main menu through which player would issue commands for new game and which game type he wants.
- Heck I might even have an idea for even better algorithm for solving the game. Well it is more like modified puzzle generation code that would generate puzzle by adding certain number of colored blocks each step until the puzzle is field. Basically the reverse order of what player will be doing. This would allow you to get the number of steps needed for solving the puzzle during its creation.
There are probably even more possible improvements that don't come to my mind right now.
Thanks again for input. So ttill room for improvements and some bling could be nice too. But now busy mode over here. I hope to get time to look at it again. I'm afraid as usual all suggestios will not be adressed. But possibly some. The algo could be optimized, no doubt. On the other hand the player might want to play leisure mood and not think too much so a non optimized algo can cut the player some slack.
That is possible and a nice extra option. However I ran into an other unexpected problem for the Windows version. It turned out it's possible and useful for some windows users to scale the monitor, e.g. to 125%. Since I hadn't taken that into account the optics turned out horrible.
See below screenshot at 125% on Windows. I assume the same thing could happen to Linux. Anyway I'm trying to make a fix. Seems promising. However this may complicate my upcoming game project. We will see.
How do you guys handle such scaling? How common is the scaling?
grayout-unscaled.jpg
Bookmarks