summaryrefslogtreecommitdiffstats
path: root/include/game.php
AgeCommit message (Collapse)AuthorFilesLines
2008-05-18BUGFIX: show comment for Schweinchen the moment it is playedArun Persaud1-7/+10
the user had to reload before he could see the comment, now the automated comment shows up right away. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-17CLEANUP: rewrote code for SchweinchenArun Persaud1-23/+45
should be easier to add some new features now. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-15BUGFIX: scoring of silent solo was wrongArun Persaud1-8/+37
game type wasn't set to silent solo. Also needed to change some outputs and other special cases for silent solo Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-13BUGIFX: during each reload of a game, the starplayer got reset and emails ↵Arun Persaud1-30/+36
got send out the routine that emails the startplayer and sets some other variables (e.g. whos turn it is) should only be called once. Was called everytime the game page was reloaded though. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-11BUGFIX: rewrote poverty, should fix lots of bugsArun Persaud1-344/+415
poverty should work now, even if the user doesn't do everything in one go. Cleaned up the layout at the same time. The cards were sometime displayed below the main page, which led to a lot of empty space... Indicating whos turns it is during the pre-game phase should now be ok. Also cleaned up whitespaces. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-10NEW FEATURE: display if someone is sick during the init phaseArun Persaud1-1/+24
Now players can see if someone in front of them said they were sick or not. This way people can decide to wait until people in front of them finished the init phase to see what the other playes said... it's made so that you can also see if people behind you already have decided or not, but the player won't see the result in that case... Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-08CLEANUP: reorganized the 'init' phase of a gameArun Persaud1-83/+43
moved some code around, so that we test the result of the init phase in the init case statement. Made things a bit clearer and removed one page reload by doing this. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-06CLEANUP: removed all calls to mysql functions and replaced them with calls ↵Arun Persaud1-125/+120
to DB_xxx should be very easy now to change to a different database. also made the code look nicer ;) Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-06BUGFIX: typo in scoring algorithmArun Persaud1-17/+24
The re-party got less points in case the contra-party made a call and lost the game. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-27BUGFIX: couldn't restart a finished game; force reload of CSSArun Persaud1-10/+9
problem was that everything on the page was in a form which is now submitted to the game page, but for new games, we need to call the newgame.php page. moved the button out of the side and into its own div structure now to fix it. also renamed the css file to force a reload Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-26CLEANUP: cleaned up index.php a bit more by introducing an 'action' variableArun Persaud1-16/+24
no more if, but one nice switch statement in index.php Signed-off-by: Arun Persaud <arun@nubati.net>
2008-04-26CLEANUP: make index.php very short and move everything in separate filesArun Persaud1-0/+1763
created an include dir and almost everything that was in index.php is now in separate files and gets only included in index.php... makes index.php look a lot nicer ;) Signed-off-by: Arun Persaud <arun@nubati.net>