summaryrefslogtreecommitdiffstats
path: root/include/game.php
AgeCommit message (Collapse)AuthorFilesLines
2011-02-21BUGFIX: don't show schweinchen in poverty games during pre-game phaseArun Persaud1-0/+3
after exchanging cards schweinchen was shown during the pre-game phase
2010-11-21fixed one bugs in the scoring algorithmArun Persaud1-15/+15
* no "call-x" points where given if "0" was called
2010-11-21fixe placement of comment box in pre-game phaseArun Persaud1-0/+8
it now always shows at the bottom of the page as it should ;)
2010-09-22BUGFIX: fixed last commitArun Persaud1-3/+4
2010-09-21NEW FEATURE: pre select card to play if there is only one optionArun Persaud1-1/+33
2010-06-25BUGIFX: when playing a silent solo the "pre" trick showed up in the list of ↵Arun Persaud1-10/+12
tricks since now sickness was shown in the pre trick this gave away silent solo, although I think nobody noticed up to now ;) Should be fixed now by checking for silent solo correctly (a non-function if-statement was already in the code)
2010-04-19moved gameinfo box (calls, comment-input, submit, games player by otheres) ↵Arun Persaud1-11/+21
to the bottom of the page this should make it easier for people with a mobile phone.
2010-04-17marked more strings for translationArun Persaud1-8/+8
2010-04-17marked more strings for translationArun Persaud1-26/+26
2010-03-18marked more strings for translationArun Persaud1-16/+16
2010-03-14marked more strings for translationArun Persaud1-6/+6
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>