02-03-2021, 02:47 PM
(02-03-2021, 02:36 PM)slimy_asparagus Wrote: Rational numbers can be viewed as pairs of natural numbers and you can implement their arithmetic that way. So the lack of rational numbers in Ludii should not be an issue.
True - so the actual question would be, whether one could have pairs of natural numbers or integers as piece values (maybe this is possible already, but I have not found it in the language reference). The question for a Rational class is rather one of convenience, if one would intend to write other games involving rational numbers, to avoid implementing their arithmetic in every new game.
Quote:This could be a puzzle or a game. For a puzzle the objective is to get exactly the answer. For a game the winner could be the one who gets closer presumably in a fixed time limit.
Another idea for a game would be to have two players do alternating moves on a common list of numbers. Winning conditions for the two players would be given by certain conditions on the final result. But it could be difficult to balance the winning conditions.