René's URL Explorer Experiment


Title: How to favor path with less turns? (A*) · Issue #57 · brean/python-pathfinding · GitHub

Open Graph Title: How to favor path with less turns? (A*) · Issue #57 · brean/python-pathfinding

X Title: How to favor path with less turns? (A*) · Issue #57 · brean/python-pathfinding

Description: Thanks for this library. Being new to pathfinding, I used the A* basic example at it ran right away. Is your feature request related to a problem? Please describe. For my use-case, I set DiagonalMovement.never. I now was wondering, if it...

Open Graph Description: Thanks for this library. Being new to pathfinding, I used the A* basic example at it ran right away. Is your feature request related to a problem? Please describe. For my use-case, I set DiagonalMo...

X Description: Thanks for this library. Being new to pathfinding, I used the A* basic example at it ran right away. Is your feature request related to a problem? Please describe. For my use-case, I set DiagonalMo...

Opengraph URL: https://github.com/brean/python-pathfinding/issues/57

X: @github

direct link

Domain: patch-diff.githubusercontent.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"How to favor path with less turns? (A*)","articleBody":"Thanks for this library. Being new to pathfinding, I used the A* basic example at it ran right away.\r\n\r\n**Is your feature request related to a problem? Please describe.**\r\nFor my use-case, I set `DiagonalMovement.never`. I now was wondering, if it is possible to favor a path with less turns? \r\n\r\n**Describe the solution you'd like**\r\n* In the following simplified grid, I want to get from `s` to `e`.\r\n* For the purpose of discussion, I drew to possible paths `A` (`sxxAA..Axxe`) and `B` (`sxxBB..Bxxe`).\r\n* Without diagonal movement, Path `B` has the same length as path `A`. Is it possible to tune settings(neighbor weights?) so that path `A` (having less turns) is favored over path `B`?\r\n\r\n```\r\n+----------+\r\n|        ##|\r\n| AAAAAxxe#|\r\n| A    B ##|\r\n| xBBBBB ##|\r\n| x        |\r\n|#s##      |\r\n|####      |\r\n+----------+\r\n```\r\n\r\n**Describe alternatives you've considered**\r\n* I was (naively) hoping that deliberately setting the start and endpoint in a recess of my blocked areas might help to favor path `A`, but I get `B` instead.\r\n","author":{"url":"https://github.com/maximweb","@type":"Person","name":"maximweb"},"datePublished":"2024-06-20T14:27:51.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":7},"url":"https://github.com/57/python-pathfinding/issues/57"}

route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:cd442215-2e13-ada8-8370-469a3fb08bfb
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idBE4C:8E4C3:14476:1957F:698D242C
html-safe-nonce7cf7165e08b3b8451270f2f6475024feb25e0bc5639a3a7c46c935b57756e4c4
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRTRDOjhFNEMzOjE0NDc2OjE5NTdGOjY5OEQyNDJDIiwidmlzaXRvcl9pZCI6IjI4NTYyNDU4ODc0NjU0OTc2NDQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1832ceecd63c715a5be6b440f8984474112121c5e81415f960a73f839eb2f953
hovercard-subject-tagissue:2364600336
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/brean/python-pathfinding/57/issue_layout
twitter:imagehttps://opengraph.githubassets.com/c6d48c75e678adaa152615a8ef27f6c02e875484d150465c599fb99859b4feb0/brean/python-pathfinding/issues/57
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c6d48c75e678adaa152615a8ef27f6c02e875484d150465c599fb99859b4feb0/brean/python-pathfinding/issues/57
og:image:altThanks for this library. Being new to pathfinding, I used the A* basic example at it ran right away. Is your feature request related to a problem? Please describe. For my use-case, I set DiagonalMo...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamemaximweb
hostnamegithub.com
expected-hostnamegithub.com
Nonec25395580e1e3bf82d705e0982a1b24255366088720fef945f1493d5e3e67954
turbo-cache-controlno-preview
go-importgithub.com/brean/python-pathfinding git https://github.com/brean/python-pathfinding.git
octolytics-dimension-user_id229768
octolytics-dimension-user_loginbrean
octolytics-dimension-repository_id32716626
octolytics-dimension-repository_nwobrean/python-pathfinding
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id32716626
octolytics-dimension-repository_network_root_nwobrean/python-pathfinding
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release1fa2bc33fc715bfb2cb9dd8a9cad4f811c16c371
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://patch-diff.githubusercontent.com/brean/python-pathfinding/issues/57#start-of-content
https://patch-diff.githubusercontent.com/
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrean%2Fpython-pathfinding%2Fissues%2F57
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://patch-diff.githubusercontent.com/login?return_to=https%3A%2F%2Fgithub.com%2Fbrean%2Fpython-pathfinding%2Fissues%2F57
Sign up https://patch-diff.githubusercontent.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=brean%2Fpython-pathfinding
Reloadhttps://patch-diff.githubusercontent.com/brean/python-pathfinding/issues/57
Reloadhttps://patch-diff.githubusercontent.com/brean/python-pathfinding/issues/57
Reloadhttps://patch-diff.githubusercontent.com/brean/python-pathfinding/issues/57
brean https://patch-diff.githubusercontent.com/brean
python-pathfindinghttps://patch-diff.githubusercontent.com/brean/python-pathfinding
Notifications https://patch-diff.githubusercontent.com/login?return_to=%2Fbrean%2Fpython-pathfinding
Fork 73 https://patch-diff.githubusercontent.com/login?return_to=%2Fbrean%2Fpython-pathfinding
Star 370 https://patch-diff.githubusercontent.com/login?return_to=%2Fbrean%2Fpython-pathfinding
Code https://patch-diff.githubusercontent.com/brean/python-pathfinding
Issues 24 https://patch-diff.githubusercontent.com/brean/python-pathfinding/issues
Pull requests 0 https://patch-diff.githubusercontent.com/brean/python-pathfinding/pulls
Actions https://patch-diff.githubusercontent.com/brean/python-pathfinding/actions
Projects 2 https://patch-diff.githubusercontent.com/brean/python-pathfinding/projects
Wiki https://patch-diff.githubusercontent.com/brean/python-pathfinding/wiki
Security 0 https://patch-diff.githubusercontent.com/brean/python-pathfinding/security
Insights https://patch-diff.githubusercontent.com/brean/python-pathfinding/pulse
Code https://patch-diff.githubusercontent.com/brean/python-pathfinding
Issues https://patch-diff.githubusercontent.com/brean/python-pathfinding/issues
Pull requests https://patch-diff.githubusercontent.com/brean/python-pathfinding/pulls
Actions https://patch-diff.githubusercontent.com/brean/python-pathfinding/actions
Projects https://patch-diff.githubusercontent.com/brean/python-pathfinding/projects
Wiki https://patch-diff.githubusercontent.com/brean/python-pathfinding/wiki
Security https://patch-diff.githubusercontent.com/brean/python-pathfinding/security
Insights https://patch-diff.githubusercontent.com/brean/python-pathfinding/pulse
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/brean/python-pathfinding/issues/57
New issuehttps://patch-diff.githubusercontent.com/login?return_to=https://github.com/brean/python-pathfinding/issues/57
How to favor path with less turns? (A*)https://patch-diff.githubusercontent.com/brean/python-pathfinding/issues/57#top
https://github.com/maximweb
https://github.com/maximweb
maximwebhttps://github.com/maximweb
on Jun 20, 2024https://github.com/brean/python-pathfinding/issues/57#issue-2364600336
Release 1.1https://github.com/users/brean/projects/1
Release 1.2https://github.com/users/brean/projects/2
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.