summaryrefslogtreecommitdiffstats
path: root/include/game.php
AgeCommit message (Collapse)AuthorFilesLines
2008-11-01CLEANUP: cleaned up CSS a bitArun Persaud1-13/+13
the bug where you couldn't click on the prev/next button shouldn't show up that often now, since that area is now a bit bigger, but the bug is still there... Signed-off-by: Arun Persaud <arun@nubati.net>
2008-11-01BUGFIX: fixed some small typo/layout issues in the "game over" emailArun Persaud1-1/+1
added a line break, made the score table look better Signed-off-by: Arun Persaud <arun@nubati.net>
2008-10-20BUGFIX: make user menu and personal notes appear againArun Persaud1-4/+26
had them only shown when player was logged in, but there is really no reason to not show them to players who are not logged in in an ongoing game (only the correct player should get to a page with an ongoing game) Signed-off-by: Arun Persaud <arun@nubati.net>
2008-10-18BUGFIX: fixed a syntax errorArun Persaud1-1/+1
forgot a ; Signed-off-by: Arun Persaud <arun@nubati.net>
2008-10-18CLEANUP: reduced emails at the end of the gameArun Persaud1-12/+11
only sent out one email with links for everyone in it. This is now possible, since it's ok for other people to visit games from another player. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-10-18NEW FEATURE: implement Lance's Schweinchen ruleArun Persaud1-3/+13
new rule that only allows Schweinchen in case one of the teammembers called re/contra. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-10-18NEW FEATURE: make it possible to view games where people played with the ↵Arun Persaud1-4/+23
same hand had to change a few things and check more often if people are logge in, so that for example personal notes only show up when you are logged in and not when someone else is looking at your cards Signed-off-by: Arun Persaud <arun@nubati.net>
2008-09-24BUGFIX: schweinchen wasn't accounted for in a wedding (issue #25)Arun Persaud1-1/+1
forgot to add wedding to list of games that need to be checked for schweinchen. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-09-24LAYOUT: wrap some text for status of sickness betterArun Persaud1-2/+2
make "still needs to decide" two lines:wq Signed-off-by: Arun Persaud <arun@nubati.net>
2008-09-13LAYOUT: removed some overlapping areasArun Persaud1-39/+36
the total points and the game points for re/contra now only show up on the "score" trick. This way they don't overlap with graphics when looking at older tricks. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-09-13BUGFIX: added missing icons for rulesArun Persaud1-2/+35
made some very simple icons for displaying the rules Signed-off-by: Arun Persaud <arun@nubati.net>
2008-08-19BUGFIX: error in scoring algorithm when two players on the contra team made ↵Arun Persaud1-1/+1
a call to figure out who made the lower call, you need to compare the two calls, but for some reason instead of comparing the two contra-calls, the contra call was compared to the re-call which could make the algorithm belief that the contra-call was higher than it was. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-08-17BUGFIX: &amp; instead of & in email textArun Persaud1-1/+1
&amp; should only be used in HTML output. Changed this a while ago, but seems like I missed one. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-07-13NEW FEATURE: in poverty you can now see what cards have been handed overArun Persaud1-1/+80
cards exchanged during poverty show now up in the pre-game trick. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-07-11BUGFIX: fixed a small typoArun Persaud1-1/+1
Sean found this... Signed-off-by: Arun Persaud <arun@nubati.net>
2008-06-29BUGFIX: the pre and next buttons are fixed, also fixed showing sickness ↵Arun Persaud1-235/+232
right away pre and next buttons were sometimes displayed in another line due to a missing end of a div and a li. Selecting a sick/healthy only showed up after reloading. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-06-29BUGFIX: got rid of double insert of notes.Arun Persaud1-8/+0
when you wrote a personal note on your turn, it got inserted into the database twice Signed-off-by: Arun Persaud <arun@nubati.net>
2008-06-29CLEANUP: cleaned up stringsArun Persaud1-153/+153
used single quote instead of double quotes in lots of places Signed-off-by: Arun Persaud <arun@nubati.net>
2008-06-16NEW FEATURE: login buttonArun Persaud1-20/+4
added a login button to the top right, in case you were not logged in. output_status can now be called in only one place, ie index.php and all pages will get the menu... Signed-off-by: Arun Persaud <arun@nubati.net>
2008-06-15BUGFIX: if a call is made the icon will show up right awayArun Persaud1-12/+12
check at the beginning if a call was made, so that the information is up to date when the output for the table is generated. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-06-08BUGIFX: notes are now available during every phase of the gameArun Persaud1-19/+10
you can now take notes also during the pre-game phase. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-06-06BUGFIX: fixed wrong use &amp; in mailsArun Persaud1-8/+8
&amp; should replace & only in html output not in emails. Signed-off-by: Arun Persaud <apersaud@lbl.gov>
2008-06-01LAYOUT: moved score table and rules to the topArun Persaud1-51/+20
removed more of the side layout into the top session bar. removed the list of games in a session and have it now accessable via the score table Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-31BUGFIX: pre/next button was displayed incorrect because of wrong </li> statementArun Persaud1-5/+9
sometimes an extra </li></div> was issued which messed up the HTML. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-29BUGIFX: wrong order in if-statement led to checking an (in some cases) ↵Arun Persaud1-1/+1
uninitialized variable changed the order and now everything should be fine. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-29BUGFIX: forgot to close a <li> and a <div> on the first trick playedArun Persaud1-1/+1
messed up the html a bit, just a minor fix though Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-29CLEANUP: fixed some invalid htmlArun Persaud1-18/+18
replaced & with &amp; everywhere in game. and fixed a typo. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-25NEW FEATURE: add two buttons to move forward and backwards through the tricksArun Persaud1-2/+2
makes navigation through the games easier Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-25BUGFIX: fixed a typo in the text for povertyArun Persaud1-2/+2
(reported by Lance) Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-24NEW FEATURE: automatically accept new gamesArun Persaud1-2/+6
user can set this in the preferences now and won't be asked during a game setup Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-24BUGIFX: game didn't get started in normal poverty gamesArun Persaud1-9/+32
forgot to set the players who didn't get asked to take the trump to 'play' status. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-24CLEANUP: removed todo item for silent solo from codeArun Persaud1-1/+1
changed comments Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-22BUGIFX: more accurate display of whos turn it isArun Persaud1-0/+3
forgot some breaks when looping over all players, so that the player was set to someone that needed to do something, but not to the player closest to the dealer, but furthest away from him. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-19BUGFIX: setting the gametype gave away information in case someone wanted to ↵Arun Persaud1-1/+5
play solo. setting the gametype to what was stored in the DB sorted the hands of everyone according to the gametype. This showed for example if someone wanted to play a solo, since then everybodys cards where ordered like that... changed it now, so that for the pre-game phase the cards are ordered for normal games. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-18BUGFIX: forgot to set default values for some new variablesArun Persaud1-5/+7
$GAME['schweinchen-who'] was not necessary defined Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-18BUGFIX: forgot to initialize a variableArun Persaud1-0/+1
Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-18BUGFIX: show schweinchen has highest trump in your handArun Persaud1-3/+8
correctly shows both schweinchen as highest trump or just one depending on the rules. If only one don't allow to play it unless the first fox has been played. Signed-off-by: Arun Persaud <arun@nubati.net>
2008-05-18BUGFIX: problem with Schweinchen during pre-game phaseArun Persaud1-3/+12
in case a player called solo, the gametype was set so that for other playes Schweinchen wasn't calculated correctly anymore. This could result in trump being counted incorrectly and therefore poverties not being discoverd. Signed-off-by: Arun Persaud <arun@nubati.net>
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>