drocta / CGT

Combinatorial Game Theory stuff.
2 stars 1 forks source link

Make pretty print function support binary fractions. #2

Open drocta opened 9 years ago

drocta commented 9 years ago

Improve the pretty print function ( pp() ) so that if the game it receives as input, or as a subgame in the input, is a binary fraction, it will be represented as such.

For example, {0|1} should become 1/2 , {1|2} should become 3/2. {1|{1|2}} should become 5/4. when pretty printed.