barratt / mapsnotincluded.org

https://mapsnotincluded.org
7 stars 6 forks source link

Implement JS / C# Based KRandom #50

Open barratt opened 2 hours ago

barratt commented 2 hours ago

Lets see if we can get a KRandom implementation working in JS. At the very least in C# (the games language)

If we can crack this it opens up the possibility of world generation / trait prediction rather than relying on brute forcing the seeds

barratt commented 2 hours ago

@Sgt-Imalas Issue is here to track progress of what we discussed on Discord

barratt commented 2 hours ago

@StefanOltmann seems to have a Kotlin implementation (Wth man...) with unit tests we can compare against https://github.com/StefanOltmann/oni-save-parser/blob/main/app/src/jvmTest/kotlin/de/stefan_oltmann/oni/parser/KRandomTest.kt

barratt commented 2 hours ago

Apparently my JS version which was previously thought as broken when comparing with (just 1 for now) test from steps seems to match