irmen / Tale

Interactive fiction (text adventure) and Mud framework
http://tale.readthedocs.io/
GNU Lesser General Public License v3.0
145 stars 35 forks source link

Make params of StoryConfig optional #17

Closed sils closed 9 years ago

sils commented 9 years ago

You probably want to have None or whatever as default values for StoryConfig, when I don't provide all arguments from your demo it just throws an exception saying I should provide all arguments. Would be rather good to make as much as possible optional so in order to get started one can just provide a title only or so. Similar to distutils/setuptools.setup

irmen commented 9 years ago

Yeah the story config/init code could use some usability love indeed. Might as well do this soon, it's a simple enhancement

irmen commented 9 years ago

Fix this at the same time:

those methods of the Story class should be optional. E.g. a goodbye message can be provided by default and be only overridable. Same with welcome and so on, giving the user an easier learning curve into tale.