GSoC/GCI Archive
Google Code-in 2010 Tux4Kids

Fix or rewrite order-of-operations question generator in mathcards.c

completed by: Aviral Dasgupta

mentors: David Bruce

Tuxmath supports questions with multiple operators and operands, but the existing implementation has a bug - it sometimes creates questions with multiple correct answers, only one of which is the "real" correct answer to the program.

The function is:

generate_random_ooo_card_of_length(), and it starts at line 1603 in mathcards.c