Coding Challenge 171: Wave Function Collapse

Coding Challenge 171: Wave Function Collapse

The Coding Train

2 года назад

554,004 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@viniciusvieira8651
@viniciusvieira8651 - 02.09.2023 07:56

It feels so bad to critique a vid of a channel with such a great vibe, but maaan this was hard to watch, I know it's suposed to be you going through your thought proccess, but the first half felt a bit too much like a waste. Also, maybe it's just worse on headphones, but the constant error beeps are annoying.

Ответить
@primok109
@primok109 - 25.09.2023 13:06

Can you not bring out the mistakes? I admit that this is very exciting and exposes the process, but it will fucking mislead people. You know, it makes you confused!

Ответить
@pointlessviewer
@pointlessviewer - 07.10.2023 14:46

I just found your channel, I do agree with the comments, you are the bob ross of Computer science! So chill and non-perfectionist, playful way of coding and working with concepts!

Ответить
@DestroyerOfAglets
@DestroyerOfAglets - 11.10.2023 21:20

Watching this while playing a sudoku puzzle for maximum immersion

Ответить
@muzammilsarwar6944
@muzammilsarwar6944 - 20.10.2023 18:28

my brain has collapsed

Ответить
@seven-alpha-ten
@seven-alpha-ten - 04.11.2023 03:11

This is exactly what I'm trying to do with Excel VBA – fitting 27 unique 1 × 14 patterns to fill a 64 × 14 grid under several constraints/criteria. Many thanks for the insights

Ответить
@ollllj
@ollllj - 23.11.2023 17:36

the recursive propagation is the not complex part of WFC, and it is not really needed when you do it on a GPU.

Ответить
@PEZenfuego
@PEZenfuego - 05.01.2024 14:48

I would think you could use linear programming to achieve the same thing. After all, it works on sudoku. Might be fun to think about.

Ответить
@milefiori7694
@milefiori7694 - 11.01.2024 16:46

Loose typing is so scary

Ответить
@RupertBruce
@RupertBruce - 15.01.2024 21:12

Instead of splitting the side into sockets, have a nullable Constraint on each side. Each cell has an array of 4 nullable neighbors and another array of 4 nullable constraints. If the neighbor is null it is an edge (no wraparound). If the constraint is null, the cell is blank. The constraint object satisfies IEquatable interface.

Ответить
@kevinbuiied
@kevinbuiied - 22.01.2024 21:05

Could you do this with the Einstein tile?

Ответить
@LeeOades
@LeeOades - 28.01.2024 13:06

Just wanted to add my ❤! Great, fun video. Thank you for all your coding and video editing efforts!

Ответить
@Sayamak
@Sayamak - 31.01.2024 03:16

Very educational and entertaining. Those 78 minutes are totally worth it!

Ответить
@ThankYouESM
@ThankYouESM - 02.02.2024 03:27

Is this very much how ChatGPT works?

Ответить
@shashankpandey8346
@shashankpandey8346 - 04.02.2024 17:58

He finally discovered dark theme?

Ответить
@edgeofsanitysevensix
@edgeofsanitysevensix - 05.02.2024 20:36

You're focusing on the array too much. Create a data structure to store the tile data and populate the array with those.

Ответить
@el_es
@el_es - 07.02.2024 16:39

I wonder, if this could be adapted to generate actual working PCB (autorouting) - that would be a wfc with constraints (hand -placed components, really dynamic rules for the connections [nets] for startes) (I guess this might be how autorouters of old might have worked...?)

Ответить
@DavidvanDeijk
@DavidvanDeijk - 07.02.2024 20:09

Best thing you did in this video was rename the const tiles to const tileImages. You were confusing yourself so much.

Ответить
@bradb9635
@bradb9635 - 07.02.2024 21:44

As a professional software developer, I can attest that the montage with the ever-increasing error counter and holding your head in your hands is very true to life.

Ответить
@Burnrate
@Burnrate - 10.02.2024 21:21

Oh my gosh at one hour and twelve minutes still not doing wave function collapse. You need to update every tile touching any updated tile which means you might update a tile multiple times per placement and there may be many tiles you don't need to update.

If you are hitting tiles that have no solution that means you aren't doing wave function collapse.

Ответить
@levioptionallastname6749
@levioptionallastname6749 - 11.02.2024 05:40

it helps allot watching you ACTUALLY solve this, Then comparing that to how I do it, then I can see how I Think/feel in relation and if I am in the right path

Ответить
@chrissjackson6488
@chrissjackson6488 - 17.02.2024 03:17

You've enumerated your sockets into 12 distinct points, but I think you could get away with only having 9 as each corner is notated by 2 indices and they always match.

Ответить
@marcosvalderrey5063
@marcosvalderrey5063 - 04.03.2024 00:38

console.table() made my day.

Ответить
@eboatwright_
@eboatwright_ - 15.03.2024 07:10

Such an awesome explanation! Can't wait for the overlapping algorithm

Ответить
@BR-mk7uy
@BR-mk7uy - 26.03.2024 11:07

I really want to see you doing the overlapping model 🥺

Ответить
@BigFarda
@BigFarda - 29.03.2024 13:34

This is kind of like videogame map generation.

Ответить
@Boildroid
@Boildroid - 31.03.2024 11:02

For a second thought that you are Warren Spector

Ответить
@monsieurwieselle
@monsieurwieselle - 02.04.2024 18:04

I enjoyed the editing, good job Mathieu Blanchette!

Ответить
@JakubSK
@JakubSK - 07.04.2024 12:41

This is why I read..

Ответить
@Destrolll
@Destrolll - 11.04.2024 13:44

Beautiful video using ugly language. Wish you were coding in python

Ответить
@djtomoy
@djtomoy - 20.04.2024 22:07

Brain function collapse

Ответить
@ruhanbello3983
@ruhanbello3983 - 24.04.2024 15:39

The way you explain thigs with such enthusiasm is really nice. Amazing! Thanks a lot for the video

Ответить
@coderwelsch
@coderwelsch - 24.04.2024 17:09

love you man

Ответить
@ihsankurniawan3591
@ihsankurniawan3591 - 19.05.2024 15:28

i stuck at evaluating entropy figuring how on earth "gridCopy" can directly mutates the "grid" the whole week 😭

turn out the splice function only shallow copied the "grid". the reference is still the same.

learnt something new everyday

Ответить
@RindGame
@RindGame - 02.06.2024 15:54

too funny for a typescript developer for 3 years to thought that video~

Ответить
@RindGame
@RindGame - 02.06.2024 15:56

valid.include[element] !!!!

Ответить
@otoS97
@otoS97 - 10.06.2024 17:18

Amount of time this man lost because Java Script syntax :D

Ответить
@EpicGamer-ny1fu
@EpicGamer-ny1fu - 16.07.2024 07:18

Slice only creates a shallow copy of the array. the objects stored in it won't be copies but just references to the same objects. this will be evident by doing the following

let x = {t: 23, x: {y:25, b: {a:1}}};
let x2 = {t: 23, x: {y:25, b: {a:1}}};
let y = [x];
let z = y.slice();
z[0] === x //true;

let xCopy = {...x};
x === xCopy; //false
x === x2; // false;

Ответить
@benflightart
@benflightart - 19.07.2024 11:08

Thanks this actually helped me build my own wave function collapse system in unreal engine.

Ответить
@BenVanCamp
@BenVanCamp - 16.08.2024 01:59

“As the appearance of the bow that is in the cloud in the day of rain, so was the appearance of the brightness round about. This was the appearance of the likeness of the glory of the LORD. And when I saw it, I fell upon my face, and I heard a voice of one that spake.”
‭‭Ezekiel‬ ‭1‬:‭28‬ ‭KJV‬‬

Ответить
@rahul9704
@rahul9704 - 18.08.2024 09:55

You need some Typescript in your life

Ответить
@americancitizen748
@americancitizen748 - 20.10.2024 10:49

OK, now use this to simulate a quantum computer.

Ответить
@rich1051414
@rich1051414 - 03.11.2024 16:34

What about wave function collapse agreeance when you have multiple simultaneous entry points at great distances from each other.

Ответить
@smoothoperatah
@smoothoperatah - 04.11.2024 09:51

did you rotoscope that whole whiteboard session? wow

Ответить
@duchdupy
@duchdupy - 13.11.2024 14:42

zaiste zajebiste

Ответить