python Server-Client Demo I worked on this for a bit longer than I thought I was going to, but I've also got a sturdier product than I was expecting to have at this stage. I've pushed
python Starting Work on the Server To begin with, I want to describe in a bit more detail how I'm imagining the system to work. There will be one main executable file, server.py. It will output only debug
python A New Hope I'm making a new start on the text-based game I've been writing. The code at this point is spaghetti, and I can't develop anything at the speed I want to without relying on
python Parsing: Error Messages Part 2 Parsimonious, the library I'm using, provides a super useful class for visiting nodes in a parse tree called a NodeVisitor (appropriately enough). In order to use our generated parse trees for commands or
python Parsing: Error Messages and Accessibility At the moment, generate_parse_tree is returning a parse tree if it matches a valid command, or None if not. One way of getting more informative error messages (a la Zork) could
python Text Game Update I really think I've got it! I've solved the problems that I faced earlier, neatly outlined by this webpage. Here's the first problem I faced: "Another fun case: some checks apply to
python Interactive Fiction Programming Or, some thoughts on how to implement Interactive Fiction in modern languages. The first thing to note is: it's difficult. Really difficult. But the worst part is, it starts out being easy... Getting