I’m currently researching auto-tiling. I’m just gonna drop some links here instead of keeping them 10 folders deep in my bookmarks bar.

https://michagamedev.wordpress.com/2018/02/24/181/
http://www.cr31.co.uk/stagecast/wang/blob.html