From: David B. <dav...@gm...> - 2010-12-19 20:47:48
|
Hi Aviral, Something like this should really go to the tuxmath dev list, which I cc'd On Sun, Dec 19, 2010 at 7:57 AM, Aviral Dasgupta <avi...@gm...> wrote: > I've decided to completely rewrite MathCards (apart from the implementation > details ie. functions like generate_random_flashcard etc., which will just > be copied over) It will be quite a project, and probably involve some "re-inventing the wheel" if you come up with another implementation that does the same thing. Make sure you understand everything the current system does, because we added several things piecemeal because a previous, simpler version didn't quite do something we needed it to do. I really don't want to drop any of the functionality of the current mathcards. Mathcards even stores a linked list of questions that were not answered correctly, for use in a subsequent review game. We never have implemented an option to play such a review game, but it is something I eventually want to get done. I'm really hesitant to rip out a large section of working code. The only bug I was aware of was the generation of "ooo" questions with indeterminate answers, which ought to now be fixed. I don't think a complete re-write is needed to add the ability to support more than one simultaneous game (for the LAN server, in case anyone is wondering). If you see ways to clean up the "messy" parts, feel free to make suggestions, but I don't see the case for a complete re-write, especially if it spills over into significant changes for game.c, server.c, and the options system. Of course, tuxmath is free software, and you are perfectly free to write whatever you want. Just keep it in its own branch until it is complete and thoroughly tested. If it does everything the current mathcards does and is more clean and readable, we would be happy to use it. Best, David |