Git Product home page Git Product logo

Comments (6)

margaret avatar margaret commented on April 28, 2024

I started a fork earlier today where I'm just putting some comments around everything (mapping the README to the bits of the code it's relevant to, annotating the closures, etc). I'm not aiming to refactor it because I haven't written any C# before, but if anyone wants to collaborate on informal docs I'd be happy to. I am trying to get to the point where I understand it well enough to write a Python port. https://github.com/margaret/WaveFunctionCollapse/tree/docs

from wavefunctioncollapse.

nanodeath avatar nanodeath commented on April 28, 2024

Agreed -- some of the variables can be inferred fairly easily upon inspection (FMX (width), FMY (height), T (number of patterns/combinations), N (sample size)), but others are harder, like stationary, periodic, and propagator. Would be great to get some comments on those πŸ˜„

from wavefunctioncollapse.

Vermeille avatar Vermeille commented on April 28, 2024

margaret , that's really nice. Correcting the formatting is something that would be a first good step to make it a little more pleasant, but, sadly, not more meaningful. The two majors big steps I see are: 1) renaming variables so that they bare some more meaning, and 2) splitting the code into more smaller functions with a meaningful name.

What's the scope of the work you're doing? I could help you informally or continue where you would stop. Somewhat amusingly, I'm planning to do a talk about clean code for students of my school, that could be a case study!

from wavefunctioncollapse.

mxgmn avatar mxgmn commented on April 28, 2024

@Vermeille Hi! What lines have the wrong indentation?

from wavefunctioncollapse.

mxgmn avatar mxgmn commented on April 28, 2024

@nanodeath

stationary is a probability distribution that WFC reads from a sample or a tiles data file. It describes probabilities of each tile to be placed on the observation step.

periodic is a boolean variable which tells if the output should be periodic or not.

propagator contains information about which tiles/patterns agree with each other when placed nearby.

from wavefunctioncollapse.

mxgmn avatar mxgmn commented on April 28, 2024

I'll link build instructions from the readme. 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.