Python Forum
Shortest paths to win snake and ladder
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Shortest paths to win snake and ladder
#2
What have you tried? We're not big on writing code for people here, but we would be happy to help you fix your code when you run into problems. When you do run into problems, please post your code in Python tags, and clearly explain the problem you are having, including the full text of any errors.

Edit: I will say this: searching every path is a waste of time. Note that the shortest path is going to use ladders and avoid snakes. Find the shortest path from ladder to ladder that avoids snakes, and combine those paths.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Shortest paths to win snake and ladder - by sandaab - Jun-28-2019, 10:17 PM
RE: Shortest paths to win snake and ladder - by ichabod801 - Jun-28-2019, 10:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Good class design - with a Snake game as an example bear 1 1,880 Jan-24-2024, 08:36 AM
Last Post: annakenna
  pdf2image, poppler and paths jehoshua 18 15,086 Jun-14-2022, 06:38 AM
Last Post: jehoshua
  Windows paths issue otalado 3 1,518 May-29-2022, 09:11 AM
Last Post: snippsat
  Help for the shortest way to install a suitable version of Python, Numpy, and OpenCV. Ezzat 2 2,328 Dec-23-2021, 12:34 PM
Last Post: snippsat
  automatically get absolute paths oclmedyb 1 2,143 Mar-11-2021, 04:31 PM
Last Post: deanhystad
  Mouvement Snake (The game) Catif 0 1,344 Nov-27-2020, 08:28 PM
Last Post: Catif
  chkFile with absolute paths JarredAwesome 7 3,050 Sep-21-2020, 03:51 AM
Last Post: bowlofred
  Paths millpond 12 5,291 Jul-30-2020, 01:16 PM
Last Post: snippsat
  Problems with windows paths delphinis 6 5,309 Jul-21-2020, 06:11 PM
Last Post: Gribouillis
  How to handle paths with spaces in the name? zBernie 1 6,784 Nov-22-2018, 04:04 AM
Last Post: ichabod801

Forum Jump:

User Panel Messages

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