Conversation
…- Push_button and Cloth are assumed simply as key and object, respectively.
…l) is implemented, revisions on FW for stochastic commands, some minor changes on a few other files.
… and refactoring, game files(json, ni, ulx), updated logic files, ...
… adapt the new Predicate, Proposition, & Signature styles. This new framework can track a proposition through the time.
…nt of proposition.activate, etc.
9d3f78e to
4de1ba6
Compare
… the fully operating structure of the FW
…w quest/Event design, new world2inform7 structure, and more.
…opments on test files, some updates on the frame work, semi-final updates on Content Check Game, etc.
| state.remove_fact(prop) | ||
|
|
||
| def has_traceable(self): | ||
| for prop in self.get_facts(): |
There was a problem hiding this comment.
This class doesn't seem to have a method called get_facts.
|
|
||
|
|
||
| class Event: | ||
| class PropositionControl: |
There was a problem hiding this comment.
This class doesn't seem to have corresponding unit tests.
| [] | ||
| ) | ||
|
|
||
| def _predVT_(self, name): |
There was a problem hiding this comment.
This file is automatically generated by TatSu depending on the content of textworld/logic/logic.ebnf upon making a new TextWorld release. This means you shouldn't/can't modify it directly. Instead, you must modify logic.ebnf accordingly.
| class SignatureNode(ModelBase): | ||
| name = None | ||
| types = None | ||
| verb = None |
There was a problem hiding this comment.
This file is automatically generated by TatSu depending on the content of textworld/logic/logic.ebnf upon making a new TextWorld release. This means you shouldn't/can't modify it directly. Instead, you must modify logic.ebnf accordingly.
| # Handle door link facts. | ||
| for fact in self.facts: | ||
| if fact.name != "link": | ||
| if fact.name != "is__link": |
There was a problem hiding this comment.
For backward compatibility (very important), we should support not having an is__ by default.
| for ph, var in mapping.items(): | ||
| a = ph.name | ||
| b = self.entity_infos[var.name].name |
There was a problem hiding this comment.
It doesn't seem to be used.
|
|
||
| return "\n".join(lines) | ||
|
|
||
| def get_facts(self): |
There was a problem hiding this comment.
What's the difference with the property .facts?
| *.ipynb_checkpoints | ||
| /dist | ||
| /wheelhouse | ||
| *.orig |
There was a problem hiding this comment.
Good idea. The branch associated with this PR already contains a bunch of .orig files, though.
| @@ -0,0 +1,341 @@ | |||
| from collections import defaultdict | |||
There was a problem hiding this comment.
Let's remove the spaceship challenge from this PR to keep the changes manageable (for me) to review ;)
| actions.append(chain.actions[i - 1]) | ||
| if chain.nodes[i].breadth != chain.nodes[i - 1].breadth: | ||
| event = Event(actions) | ||
| event = EventCondition(actions) |
There was a problem hiding this comment.
Since actions is not the first parameters of the constructor anymore, you need to write actions=actions.
5e7cc23 to
a7f6017
Compare
5edccd6 to
9fce9ee
Compare
The Traceables!