paulofmandown / rotLove

Roguelike Toolkit in Love. A Love2D/lua port of rot.js
http://paulofmandown.github.io/rotLove/
Other
258 stars 25 forks source link

make digger deterministic (fix #46) #47

Closed airstruck closed 7 years ago

airstruck commented 7 years ago

Fix Digger's use of pairs causing indeterminate results.

Added some stuff to Dungeon so this can be used for other map generators if we feel like it (just to get rid of string concatenation / pairs; doesn't look like there are any other problems with determinism right now).

Digger example uses key pressed as seed, so you can keep hitting the same key and verify the dungeon is always the same.