summaryrefslogtreecommitdiffstats
path: root/include/game.php
AgeCommit message (Collapse)AuthorFilesLines
2010-03-14CLEANUP: cleaned up code for KarlchenArun Persaud1-19/+22
2010-03-13BUGFIX: missing ul-tag in poverty check messed up layoutArun Persaud1-5/+5
also removed some div-tags that were not needed
2010-03-13NEW FEATURE: having only low trump (fox and below) can now be a VorbehaltArun Persaud1-31/+67
The low trump can either be treated as poverty or similar to 5 nines, that is the game is canceled unless someone plays a solo. Also minor code cleanup.
2010-03-04BUGFIX: show "It's your turn in these games" menu also when you played the ↵Arun Persaud1-3/+13
last card in a game When showing the menu we test for the status the user had before he played the card. This fixes Issue #35.
2010-02-06added copyright notice and GPL referenceArun Persaud1-0/+19
2010-02-04BUGFIX: show correct name of all players, when looking at games of other playersArun Persaud1-1/+9
the name of the player who had the same cards wasn't displayed, instead "your cards where" was shown.
2010-02-04BUGFIX: timestamp was not always updated when user made a moveArun Persaud1-4/+10
this happend when the user wasn't logged in, but made a move by using an email link for example. Should be fixed now.
2010-02-02highlight the call if this is the last round where you can make this callArun Persaud1-3/+16
also added some more comments
2009-07-24BUGFIX: html output was messed up by some return statementsArun Persaud1-5/+6
instead of using return, we now use a break, this has the advantage that extra output (such as menus) will still be present and the html should be ok.
2009-07-21BUFIX: fixed a typoArun Persaud1-2/+2
2009-06-24display both foxes as playable, if the game doesn't allow schweinche, but ↵Arun Persaud1-6/+12
the rules do in case you play with a single schweinchen (only the second one becomes highest trump), but the game doesn't allow schweinchen (e.g. queen solo), both foxes should be selectable, but only one was. Fixes issue #53
2009-06-21some more commentsArun Persaud1-3/+9
looked into issue#51 (everything was correct) and added some comments.
2009-05-29BUGFIX: two greetings messages in cancelation email for five nines.Arun Persaud1-5/+4
removed the hard-coded one.
2009-05-11NEW FEATURE: show number of tricks a person madeArun Persaud1-0/+1
only shows 0,1,few or many tricks, so that we don't give too much information away. Might adjust or change this in the future. This addresses issues #11.
2009-05-11BUGFIX: some email messages had newlines missing before the footerArun Persaud1-4/+4
all emails now have a "\n\n" at the end of the message.
2009-04-29CLEANUP: all email now uses the standard header and footerArun Persaud1-8/+2
some email functions didn't use myemail, but used sendmail directly. This is now fixed and all emails should have the same header and footer.
2009-03-29BUGFIX: store canceled games, don't delete themArun Persaud1-11/+36
deleting the games could result in the same people getting the same hand redealt over and over again. By just keeping track of the hands in the game table, this problem should be gone. Fixed issue #50.
2009-02-25LAYOUT: some messages were not wrapped in a div-tagArun Persaud1-4/+4
and therefore had no class set, so they showed up somewhere on the page and messed up the layout
2009-02-23CLEANUP: make emails more uniformArun Persaud1-32/+32
provide a standard header and footer. Also prepare for emails to be send to the database for later delivery.
2009-02-03BUGFIX: for loop over a possible undefined variableArun Persaud1-4/+15
for the first game in a session there is no score to display yet, need to check if the score variable is empty or not before I loop over it.
2009-01-24NEW FEATURE: show exchanged cards in poverty pre-game phaseArun Persaud1-88/+21
now you can see the cards that are exchanged during the pre-game setup. Also added a "trump back" message in case trump has been given back.
2009-01-17NEW FEATURE: show when a call was madeArun Persaud1-6/+41
every time a call is made (e.g. re/contra) a comment is added. So players can check when the call was made later Fixes issue #12.
2009-01-16NEW FEATURE: always show current score on main pageArun Persaud1-1/+14
show the current score as the link to the score table
2009-01-16NEW FEATURE: add a link to the previous and next game in the sessionArun Persaud1-1/+18
makes it easier to navigate through one session
2009-01-15NEW FEATURE: only show re or contra for callsArun Persaud1-2/+4
makes it clear what you can call in a silent solo. Fixes issue #41.
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>