Home
JAQForum Ver 24.01
Log In or Join  
Active Topics
Local Time 10:56 01 Aug 2025 Privacy Policy
Jump to

Notice. New forum software under development. It's going to miss a few functions and look a bit ugly for a while, but I'm working on it full time now as the old forum was too unstable. Couple days, all good. If you notice any issues, please contact me.

Forum Index : Microcontroller and PC projects : WaterSort Game for CMM2

Author Message
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 405
Posted: 08:46pm 02 Mar 2022
Copy link to clipboard 
Print this post

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: Netherlands
Posts: 5089
Posted: 02:40pm 03 Mar 2022
Copy link to clipboard 
Print this post

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 States
Posts: 405
Posted: 03:43pm 03 Mar 2022
Copy link to clipboard 
Print this post

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 States
Posts: 197
Posted: 06:17pm 03 Mar 2022
Copy link to clipboard 
Print this post

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 States
Posts: 405
Posted: 06:43pm 03 Mar 2022
Copy link to clipboard 
Print this post

  bar1010 said  There ALWAYS needs to be an option for using keyboard controls.  Not all of us
have a mouse.


*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: Australia
Posts: 871
Posted: 09:35pm 03 Mar 2022
Copy link to clipboard 
Print this post

Bill.
. . . or port it to MMB4W?

Andrew
 
William Leue
Guru

Joined: 03/07/2020
Location: United States
Posts: 405
Posted: 02:12pm 04 Mar 2022
Copy link to clipboard 
Print this post

  Andrew_G said  Bill.
. . . or port it to MMB4W?

Andrew


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 Kingdom
Posts: 10310
Posted: 02:28pm 04 Mar 2022
Copy link to clipboard 
Print this post

  Quote  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.


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 Kingdom
Posts: 10310
Posted: 05:14pm 05 Mar 2022
Copy link to clipboard 
Print this post

Version tested and working on MMBasic for Windows


watersort.zip
 
Quazee137

Guru

Joined: 07/08/2016
Location: United States
Posts: 593
Posted: 05:44pm 05 Mar 2022
Copy link to clipboard 
Print this post

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: Australia
Posts: 871
Posted: 12:05am 21 Mar 2022
Copy link to clipboard 
Print this post

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 States
Posts: 405
Posted: 01:24pm 21 Mar 2022
Copy link to clipboard 
Print this post

  Andrew_G said  

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).



* 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: Australia
Posts: 871
Posted: 02:57am 22 Mar 2022
Copy link to clipboard 
Print this post

Thanks Bill,

Andrew
 
Print this page


To reply to this topic, you need to log in.

The Back Shed's forum code is written, and hosted, in Australia.
© JAQ Software 2025