Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Draw Worms Study
#10
(01-01-2026, 02:53 PM)SMcNeill Wrote: (code fixed)

Issue fixed.  Problem was, as suspected, an endless loop.

One of your worms was simply getting stuck in a corner and couldn't move.  All I did was implement a simple limit to it trying to avoid the WHITE and then after 10 tries, it just shrugs and eats it way forward regardless.  I might not *like* to eat white, but it won't just starve to death avoiding it constantly in an endless loop.  10 times of trying to find a random way around it, then it just wrinkles its none and moves forward anyway.

Interesting, so was the Rnd generator somehow changed from 2021 when this code was written and when QB64pe v4.0 was updated could be before that even, maybe when we changed C++ or whatever was changed to update the compiler.

I was just randomly lucky not encountering the handup before now is what I am thinking.
  724  855  599  923  575  468  400  206  147  564  878  823  652  556 bxor cross forever
Reply


Messages In This Thread
Draw Worms Study - by bplus - 01-01-2026, 02:02 PM
RE: Draw Worms Study - by bplus - 01-01-2026, 02:16 PM
RE: Draw Worms Study - by SMcNeill - 01-01-2026, 02:32 PM
RE: Draw Worms Study - by Dav - 01-01-2026, 02:43 PM
RE: Draw Worms Study - by SMcNeill - 01-01-2026, 02:46 PM
RE: Draw Worms Study - by Dav - 01-01-2026, 02:53 PM
RE: Draw Worms Study - by SMcNeill - 01-01-2026, 02:53 PM
RE: Draw Worms Study - by bplus - 01-01-2026, 03:15 PM
RE: Draw Worms Study - by bplus - 01-01-2026, 03:00 PM
RE: Draw Worms Study - by Dav - 01-01-2026, 03:01 PM
RE: Draw Worms Study - by SMcNeill - 01-01-2026, 03:23 PM
RE: Draw Worms Study - by bplus - 01-01-2026, 03:35 PM
RE: Draw Worms Study - by Dav - 01-01-2026, 03:46 PM
RE: Draw Worms Study - by bplus - 01-01-2026, 05:39 PM
RE: Draw Worms Study - by Pete - 01-01-2026, 07:18 PM
RE: Draw Worms Study - by bplus - 01-01-2026, 08:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Another way to draw rounded rectangles James D Jarvis 4 1,367 10-09-2024, 07:11 PM
Last Post: James D Jarvis
  Draw that Circle James D Jarvis 17 3,384 08-28-2022, 06:29 AM
Last Post: justsomeguy
  Draw circles James D Jarvis 5 1,524 06-16-2022, 12:09 PM
Last Post: James D Jarvis

Forum Jump:


Users browsing this thread: 1 Guest(s)