![]() |
Forum Index : Microcontroller and PC projects : WaterSort Game for CMM2
Author | Message | ||||
William Leue Guru ![]() Joined: 03/07/2020 Location: United StatesPosts: 405 |
Here is my WaterSort game for the CMM2. It requires a mouse. Unlike the version on my iPhone, it doesn't spam you with ads, has unlimited Undo, allows you to replay any puzzle, saves your solutions when you solve a puzzle, and lets you play a puzzle in both 'masked' and 'unmasked' mode. It comes with a large number of puzzles from easy to hard. ![]() Enjoy! -Bill WaterSort.zip |
||||
Volhout Guru ![]() Joined: 05/03/2018 Location: NetherlandsPosts: 5089 |
Hi Bill, Looks a bit like ChemiChaos by Vegipete. I'll give it a spin this weekend. But I first have to get a mouse working. Got an old mouse with USB that according the previous owner worked with one of those green PS2 adapters. So I am hopeful... Regards, Volhout PicomiteVGA PETSCII ROBOTS |
||||
William Leue Guru ![]() Joined: 03/07/2020 Location: United StatesPosts: 405 |
I realized after I wrote this that yes, it indeed does resemble Vegipete's ChemiChaos. I apologize! I really wasn't trying to step on Vegipete's excellent app. I had been playing a Water Sort game on my phone and was annoyed at the constant ad spamming and other mis-features, so I thought I could write something better. -Bill |
||||
bar1010 Senior Member ![]() Joined: 10/08/2020 Location: United StatesPosts: 197 |
There ALWAYS needs to be an option for using keyboard controls. Not all of us have a mouse. |
||||
William Leue Guru ![]() Joined: 03/07/2020 Location: United StatesPosts: 405 |
*Sigh* I guess so. I actually did have that option when I first wrote it but it seemed clumsy to me and slowed down the play. I will add it back in the next version. -Bill |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Bill. . . . or port it to MMB4W? Andrew |
||||
William Leue Guru ![]() Joined: 03/07/2020 Location: United StatesPosts: 405 |
So far I have not found MMB4W to be mature enough to support a lot of my software being ported. A significant annoyance is that it seems unable to let me change the keyboard type from UK to US. This alone is enough to make me not want to use it. -Bill |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
OPTION KEYBOARD US has been there since the first time I implmented proper keyboard support You don't need any GUI CURSOR commands as the Windows cursor is always there. Just use the MOUSE function to read it as per CMM2 Edited 2022-03-05 00:30 by matherp |
||||
matherp Guru ![]() Joined: 11/12/2012 Location: United KingdomPosts: 10310 |
Version tested and working on MMBasic for Windows watersort.zip |
||||
Quazee137![]() Guru ![]() Joined: 07/08/2016 Location: United StatesPosts: 593 |
I cant use a mouse so I use an xbox 360 controller. Been using xboxdrv on my Linux mint systems for many years now. I have a few .cfg files as short cut links on my desktops and can switch how it works for different programs. PCB work, graphic and of course Minecraft. ![]() I love playing Minecraft with my Grand-kids. Yes have gone through 5 controllers over the years. Check out others most are older but there is links to source that may be of use. Edited 2022-03-06 04:07 by Quazee137 |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Hi Peter, Thanks for the 'portage' to MMB4W - it works a treat! Hi Bill, Enthralling game - thank you! I've been through all the examples . . . Some observations and questions: - the solutions appear to not all be unique (thank goodness) - is that correct? - games 81 to 99 are missing on my version is that intentional? - how (on earth) did you get/generate the puzzles? - have you thought of a way of using MMBASIC to solve the puzzles (or would just trying lots of possibilities in turn work? - there would be an awful lot of permutations). Cheers, Andrew |
||||
William Leue Guru ![]() Joined: 03/07/2020 Location: United StatesPosts: 405 |
* Many of the solutions can be arrived at through different means, * I got rid of a bunch of problems and forgot to renumber the survivors :) * I generated the puzzles using a program that just randomized the colors. However, this produced many unsolvable puzzles, so I had to winnow them by hand. * It is possible to write a program that can produce a near-infinite number of solvable puzzles, but it requires backtracking, and to be efficient, memo-izing the steps to avoid duplicates. This takes a lot of memory and is hard to program in BASIC. It works better in a language that supports dynamic arrays and unlimited recursion. -Bill |
||||
Andrew_G Guru ![]() Joined: 18/10/2016 Location: AustraliaPosts: 871 |
Thanks Bill, Andrew |
||||
![]() |
![]() |
The Back Shed's forum code is written, and hosted, in Australia. | © JAQ Software 2025 |