ubc-carnap-team / Rudolf

Truth Tree Widget for Carnap
2 stars 3 forks source link

Closing nodes placed incorrectly when attached directly to root node #83

Open McTano opened 4 years ago

McTano commented 4 years ago

The node placement isn't working in a particular edge case.

If the initial set of formulas contains a contradiction, it's valid to close the tree right away, without appending any additional nodes. Likewise, you can close it with "O" if all formulas are already literals. Currently if you do this, the closing node gets positioned behind the root node, instead of underneath it. node_placed_incorrectly