Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The Book of Eliza #166

Open
greg-kennedy opened this issue Nov 23, 2015 · 2 comments
Open

The Book of Eliza #166

greg-kennedy opened this issue Nov 23, 2015 · 2 comments

Comments

@greg-kennedy
Copy link

Code: https://github.com/greg-kennedy/BookOfEliza
Novel: https://github.com/greg-kennedy/BookOfEliza/blob/master/novel.md

Overview: The idea came to me in a dream, some mixture of story generation by simulation, and the endless dusty expanse of Desert Golfing. According to the Old Testament, the Israelites spent 40 years wandering the desert in exile after Moses parted the Red Sea and freed them all from slavery. The story of Exodus begins on the border of Egypt and ends in Jerusalem - a short walk across the Sinai Peninsula. Even accounting for a layover atop Mount Sinai, 40 years seems an awfully long time to walk just 450 miles. What the heck were they doing the whole time?

Well this novel provides an answer: Moses was terrible with directions.

Postmortem: I have time left in the month, but I'm putting the lid on this, because I don't see what more useful stuff I could add to the story. I learned a few things from this year... but one thing I hit on is what a difference story framing can make. A plausible backdrop can excuse some flaws - the biblical setting here lets me get away with stilted language and some repetitiveness because that's how the medium is already.

The generator runs a daily simulation of the activities of the Israelites. Each day they progress 0.1 degrees lat/long in some direction. While Moses' brother Aaron is alive, their path is reasonably straight. After he dies, though, Moses takes over... the angle swings wildly each day, and the party is quickly lost in the desert. Provisions are eaten, random events occur, etc etc until Jerusalem is reached by pure chance.

Interspersed with the travelogue are random chapters of praise, formed from simple 2-order Markov chains, and using the book of Psalms as a corpus.

The generator creates a novel, but then discards it if it falls outside the word-limit (under 50k or over 55k), or if other conditions are met (e.g. went to Jerusalem but didn't get the Ten Commandments). Also, it drops a .kml file too, which is great for debugging - you can load it on top of Google Maps, and it will show the path the party took, plus key events in the story.
https://github.com/greg-kennedy/BookOfEliza/blob/master/novel.kml

@hugovk
Copy link
Collaborator

hugovk commented Nov 23, 2015

Good one!

The kml's a nice touch. Here's a couple of maps from it:

@hugovk
Copy link
Collaborator

hugovk commented May 29, 2016

Some screenshots of those maps for future reference:

image

image

image

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants