drocta / CGT

Combinatorial Game Theory stuff.
2 stars 1 forks source link

Improve ga object addition #3

Open drocta opened 9 years ago

drocta commented 9 years ago

When adding an integer that is a ga object and an integer that isn't (i.e. one produced by ig), the result, while currently equal to an integer, is not pretty printed correctly.

as such, some combination of the pretty print function(pp), the add function (gameSum), and maybe the simplify functions need to be modified.

Ideally it should produce a ga object integer, so as to be small, though just changing the pretty print function may be a temporary solution. As such both would be valid solutions, but this issue should remain until the result of the sum, or the simplified result of the sum, is equal to the correct ga object integer.

drocta commented 9 years ago

This has been somewhat improved by making simp3 turn integer like things into the ga type objects. potentially more stuff to come though, so leaving this open for now.