WaveFunctionCollapse icon indicating copy to clipboard operation
WaveFunctionCollapse copied to clipboard

Please comment the code!

Open 10maurycy10 opened this issue 3 years ago • 6 comments

Comments make reading and debugging the code much easier.

They are especially necessary if the code has one letter variable names!

10maurycy10 avatar Aug 11 '22 17:08 10maurycy10

I agree. Will add a few comments when I have time. Right now I can say that in SimpleTiledModel.cs a is a 90 degrees rotation, and b is tile reflection.

mxgmn avatar Aug 12 '22 11:08 mxgmn

hello,what's the meaning of symmetry?
cardinality ? func a b ?

need some comments. thanks.. or is any place we can talk about wfc . maybe anybody need some help or communicate.

segrallx avatar Dec 05 '22 08:12 segrallx

hello,what's the meaning of symmetry?

Google it.

cardinality ?

Google it.

Comments are not the place for defining basic mathematical terms.

appgurueu avatar Dec 05 '22 08:12 appgurueu

thank you , i still consued about the meaning of X ,F, L ,T could you tell me what symmetry they are representing?

segrallx avatar Dec 05 '22 09:12 segrallx

X, F, L, T are types of tile symmetries. X means a fully symmetric tile: you can rotate it 90, 180, 270 degrees or reflect it, and it would still look the same (like letter X). L can be reflected along the line y=x. F has no nontrivial symmetries.

mxgmn avatar Dec 05 '22 19:12 mxgmn

Cardinality: how many orientations (excluding reflection) of a tile with this symmetry can be distinguished.

Func<int, int> a, b: I call a the rotate_func — the function that transforms the index of a tile orientation to the one for the next 90° rotation anticlockwise — and b the reflect_func — the function that transforms the index of a tile orientation to the one for the reflected version.

Also worth pointing out that all the quantum mumbo-jumbo is a complete red herring. If you want a physical analogy, use the term “phase change”.

ldo avatar Jan 07 '23 08:01 ldo