CodingTrain / CodingTrain/Wave-Function-Collapse

Wrong tiles connecting each-other / Fix proposal

Open
#23 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
218
Forks
64
PR merge metrics
No merged PRs in 30d

Description

As they say, an image worth a thousand words.

![Circuit](https://i.imgur.com/7tR17hf.png)

We are having an issue were tile 5 connects to itself and so does 4 in a weird way. My solution idea is to have a tile have 2 properties, not only edge names, but also "connects to"

Hopefully the image explains the idea better that I could do by describing it.

(Notice that "ABB" in the connects to would really connect to what is "BBA" on the image, because of how the code works with the "reverse" logic, unless I missed something, but the basic idea is there even if I mistake some cases)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by tracing the existing tile edge and reverse-logic handling; the issue provides an image showing the incorrect connections but names no source files or tests. Determine how the proposed connects-to relationships should interact with the current edge names, then verify that tiles 4 and 5 no longer connect to themselves and follow the intended relationships.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
computer-graphics
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.