Git Product home page Git Product logo

Comments (7)

kchapelier avatar kchapelier commented on April 28, 2024 1

I think this is the intended behavior with the limit property : it actually limits the number of iterations the generation is allowed to do. If the number of iterations reaches this limit without hitting a contradiction condition, the generation is considered a success.

from wavefunctioncollapse.

mxgmn avatar mxgmn commented on April 28, 2024 1

I included samples with the limit param in samples.xml to show how to generate partially completed results. Because they can be pretty, like the "Circles" one linked from README.

from wavefunctioncollapse.

ejmahler avatar ejmahler commented on April 28, 2024

The same bug occurs with samples.xml

<samples>
    <overlapping name="Village" N="3" symmetry="2" limit="50" periodic="True"/>
</samples>

And seed
int seed = 362313200;

This means that the bug occurs with both the overlapping model and the simple tiled model.

from wavefunctioncollapse.

ejmahler avatar ejmahler commented on April 28, 2024

As I read the source of Run(), you're clearly correct.

But that doesn't seem intuitive to me -- even when providing an iteration limit, the main thing I want to know is whether or not the model now has a usable result. How would I know whether the result was complete or not? So IMO the bug still stands: I expect a return of true when the generation has completed successfully, and false otherwise.

This seems like a case of trying to cram a piece of information with three states (Complete, incomplete, impossible) into a variable with two states.

from wavefunctioncollapse.

kchapelier avatar kchapelier commented on April 28, 2024

I see that the samples.xml in the repo actually have those limit set. I wrongly assumed you added them. The limit properties should probably be removed from the file as they seems to be debug helpers more than anything.

from wavefunctioncollapse.

ejmahler avatar ejmahler commented on April 28, 2024

I edited the issue to indicate that that entry came from the existing samples.xml

from wavefunctioncollapse.

mxgmn avatar mxgmn commented on April 28, 2024

@ejmahler @kchapelier Note sure if people get notifications if I don't mention their username. It seems that everybody understood each other here, closing.

from wavefunctioncollapse.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.