How to Design a Universe (The Science of Real and Virtual Worlds)