From: Aviral D. <avi...@gm...> - 2011-02-14 13:25:13
|
Hi. I had some time today, after my exam, so I had a good look at TuxMath, and the LAN Server. Here are a few things that I want to point out: 1. *XXX* Bug #1: The *StopServer* method will only work if you're running the server using *pthread_create* and not if you're using *system*. It currently works by setting a (local) flag, which will obviously not work with *system*, as the server will be running on another process altogether. 2. *XXX* Bug #2: The server's sending out a "flurry-of-questions" when the game starts, but works fine otherwise. Implementing logic similar to that in the non-LAN game should fix this. 3. It would be **kinda good** to have a bug tracker. Has the project ever considered having a *proper* one? (not an empty one) 4. I can't reproduce the bug that you were (David was) talking about yesterday(?); the one in which a server would "reply" that a game was still in progress even after all the players had left. I don't want to sound pessimistic, but the current system seems hopelessly broken. I think we should try and fix these bugs, push out a new release, and rewrite the entire thing from scratch. I'm working on Bug #1: I think the best solution would be to add another message to make the server quit. (I think this already exists; we just need to use it ["quit"] instead of the flag) -- Regards, Aviral |