Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
maze solution
#6
You need to do one check before each square is appended, depending on how you are modifying the coordinates. If you are subtracting, you need to make sure the number is at least 0. If you are adding, you need to make sure the number is less than the appropriate len. If it passes the check, add the square, otherwise move on to the next square.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
maze solution - by jenya56 - Mar-27-2019, 04:03 PM
RE: maze solution - by perfringo - Mar-27-2019, 04:37 PM
RE: maze solution - by jenya56 - Mar-27-2019, 04:46 PM
RE: maze solution - by ichabod801 - Mar-27-2019, 04:47 PM
RE: maze solution - by jenya56 - Mar-27-2019, 04:51 PM
RE: maze solution - by ichabod801 - Mar-27-2019, 05:11 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  problem about maze path finder Simurg 2 2,053 Aug-16-2020, 01:10 PM
Last Post: Simurg
  Maze Mapping with Image Processing furkankuyumcu 0 2,253 Dec-16-2018, 02:45 PM
Last Post: furkankuyumcu
  Understanding maze generation code kleynah22 1 3,343 Nov-11-2017, 02:09 PM
Last Post: sparkz_alot
  maze pattern angelbest4 1 2,800 Sep-03-2017, 12:09 PM
Last Post: Larz60+

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020