e-DoKo.git
15 years agoBUGFIX: fixed a syntax error
Arun Persaud [Sun, 19 Oct 2008 00:39:58 +0000 (17:39 -0700)] 
BUGFIX: fixed a syntax error

forgot a ;

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBump version to RC 1 :)
Arun Persaud [Sun, 19 Oct 2008 00:03:10 +0000 (17:03 -0700)] 
Bump version to RC 1 :)

guess now it's mostly bugfixes for 1.0 ;)

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCELANUP: inform user who is registering that his email will be visible
Arun Persaud [Sun, 19 Oct 2008 00:01:36 +0000 (17:01 -0700)] 
CELANUP: inform user who is registering that his email will be visible

guess they should know ;)

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: reduced emails at the end of the game
Arun Persaud [Sat, 18 Oct 2008 23:55:40 +0000 (16:55 -0700)] 
CLEANUP: reduced emails at the end of the game

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>
15 years agoNEW FEATURE: implement Lance's Schweinchen rule
Arun Persaud [Sat, 18 Oct 2008 23:46:59 +0000 (16:46 -0700)] 
NEW FEATURE: implement Lance's Schweinchen rule

new rule that only allows Schweinchen in case one of the teammembers called re/contra.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoNEW FEATURE: make it possible to view games where people played with the same hand
Arun Persaud [Sat, 18 Oct 2008 18:33:36 +0000 (11:33 -0700)] 
NEW FEATURE: make it possible to view games where people played with the 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>
15 years agoLAYOUT: fixed overflow of comment area (issue #28)
Arun Persaud [Wed, 8 Oct 2008 05:01:31 +0000 (22:01 -0700)] 
LAYOUT: fixed overflow of comment area (issue #28)

found by Sean during extensive testing ;) should behave better now.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: error in SQL syntax for querying ruleset id
Arun Persaud [Thu, 25 Sep 2008 06:03:05 +0000 (23:03 -0700)] 
BUGFIX: error in SQL syntax for querying ruleset id

named a column 'call' which seems to be a reserved word for mysql,
so doing a "...AND call='...' " didn't work. Changed to Tabelname.call
and everything seems to be ok.

Also deleted trailing whitespaces.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: schweinchen wasn't accounted for in a wedding (issue #25)
Arun Persaud [Thu, 25 Sep 2008 05:45:15 +0000 (22:45 -0700)] 
BUGFIX: schweinchen wasn't accounted for in a wedding (issue #25)

forgot to add wedding to list of games that need to be checked for schweinchen.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: wrap some text for status of sickness better
Arun Persaud [Thu, 25 Sep 2008 05:23:58 +0000 (22:23 -0700)] 
LAYOUT: wrap some text for status of sickness better

make "still needs to decide" two lines:wq

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: solo statistics didn't include silent solo
Arun Persaud [Thu, 18 Sep 2008 05:46:05 +0000 (22:46 -0700)] 
BUGFIX: solo statistics didn't include silent solo

include silent solo in the solo statistics (number of solo/game)

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoNEW FEATURE: statistics for contra/re calls, no90, etc.
Arun Persaud [Sun, 14 Sep 2008 21:27:26 +0000 (14:27 -0700)] 
NEW FEATURE: statistics for contra/re calls, no90, etc.

how often does the re/contra party call no 90, no 60, etc.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: removed some overlapping areas
Arun Persaud [Sat, 13 Sep 2008 16:43:25 +0000 (09:43 -0700)] 
LAYOUT: removed some overlapping areas

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>
15 years agoBUGFIX: added missing icons for rules
Arun Persaud [Sat, 13 Sep 2008 16:23:34 +0000 (09:23 -0700)] 
BUGFIX: added missing icons for rules

made some very simple icons for displaying the rules

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: new password needs to be at least 4 characters long
Arun Persaud [Fri, 12 Sep 2008 02:14:06 +0000 (19:14 -0700)] 
BUGFIX: new password needs to be at least 4 characters long

added a check for the length of the new password, so that empty passwords are not allowed.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: started cleaning up the CSS file a bit
Arun Persaud [Thu, 21 Aug 2008 23:26:46 +0000 (16:26 -0700)] 
CLEANUP: started cleaning up the CSS file a bit

lots of work still needs to be done to make this readable again. It's pretty messed up with lots of things
out of order and also the naming convention is not consistent. I'm also sure that you can achieve the same effect with a lot less layout.

Signed-off-by: Arun Persaud <apersaud@lbl.gov>
15 years agoBUGFIX: error in scoring algorithm when two players on the contra team made a call
Arun Persaud [Wed, 20 Aug 2008 03:00:20 +0000 (20:00 -0700)] 
BUGFIX: error in scoring algorithm when two players on the contra team made 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>
15 years agoBUGFIX: db_format_game wasn't working any more
Arun Persaud [Wed, 20 Aug 2008 01:14:13 +0000 (18:14 -0700)] 
BUGFIX: db_format_game wasn't working any more

mysql's TIMEDIFF seems to have changed... comparing <=0 didn't work correctly anymore.
Changed it to convert to seconds and then compare those against <=0 and use that data to calculate game number

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: some more comments, also removed some debug messages
Arun Persaud [Mon, 18 Aug 2008 04:41:39 +0000 (21:41 -0700)] 
CLEANUP: some more comments, also removed some debug messages
Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: &amp; instead of & in email text
Arun Persaud [Mon, 18 Aug 2008 00:27:42 +0000 (17:27 -0700)] 
BUGFIX: &amp; instead of & in email text

&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>
15 years agoBUGFIX: wrong DB query returned sometime less rows than expected
Arun Persaud [Thu, 17 Jul 2008 00:20:18 +0000 (17:20 -0700)] 
BUGFIX: wrong DB query returned sometime less rows than expected

this fixes a bug on the home page where, in case no game was in the pre-game phase, the ongoing games were listed as games being started and the completed games were listed as ongoing games.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: error in javascript, sickness didn't get cleared
Arun Persaud [Mon, 14 Jul 2008 03:36:43 +0000 (20:36 -0700)] 
BUGFIX: error in javascript, sickness didn't get cleared

forgot to run a loop, so that it includes the sickness trick (trick0)

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoNEW FEATURE: in poverty you can now see what cards have been handed over
Arun Persaud [Sun, 13 Jul 2008 21:40:59 +0000 (14:40 -0700)] 
NEW FEATURE: in poverty you can now see what cards have been handed over

cards exchanged during poverty show now up in the pre-game trick.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: added email-list name to invitation emails
Arun Persaud [Fri, 11 Jul 2008 19:44:45 +0000 (12:44 -0700)] 
BUGFIX: added email-list name to invitation emails

all emails subject should have the list header in them, forgot to add it to the ones that are sent out when starting a new game. Also renamed a variable for more consistency.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: fixed a small typo
Arun Persaud [Fri, 11 Jul 2008 19:37:55 +0000 (12:37 -0700)] 
BUGFIX: fixed a small typo

Sean found this...

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: nice and shiny
Arun Persaud [Mon, 9 Jun 2008 07:13:31 +0000 (00:13 -0700)] 
LAYOUT: nice and shiny

hopefully some improvements ;)

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: the pre and next buttons are fixed, also fixed showing sickness right away
Arun Persaud [Sun, 29 Jun 2008 23:16:58 +0000 (16:16 -0700)] 
BUGFIX: the pre and next buttons are fixed, also fixed showing sickness 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>
15 years agoBUGFIX: got rid of double insert of notes.
Arun Persaud [Sun, 29 Jun 2008 22:52:32 +0000 (15:52 -0700)] 
BUGFIX: got rid of double insert of notes.

when you wrote a personal note on your turn, it got inserted into the database twice

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: cleaned up strings
Arun Persaud [Sun, 29 Jun 2008 22:51:53 +0000 (15:51 -0700)] 
CLEANUP: cleaned up strings

used single quote instead of double quotes in lots of places

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoMerge branch 'master' of http://nubati.net/git/e-DoKo
Arun Persaud [Sat, 28 Jun 2008 11:23:28 +0000 (04:23 -0700)] 
Merge branch 'master' of nubati.net/git/e-DoKo

15 years agoNEW FEATURE: login button
Arun Persaud [Mon, 16 Jun 2008 06:43:19 +0000 (23:43 -0700)] 
NEW FEATURE: login button

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>
15 years agoBUGFIX: if a call is made the icon will show up right away
Arun Persaud [Sun, 8 Jun 2008 18:13:14 +0000 (11:13 -0700)] 
BUGFIX: if a call is made the icon will show up right away

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>
15 years agoBUGFIX: if a call is made the icon will show up right away
Arun Persaud [Sun, 8 Jun 2008 18:13:14 +0000 (11:13 -0700)] 
BUGFIX: if a call is made the icon will show up right away

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>
15 years agoBUGFIX: user menu didn't list all games where it is your turn
Arun Persaud [Sun, 8 Jun 2008 18:06:19 +0000 (11:06 -0700)] 
BUGFIX: user menu didn't list all games where it is your turn

games where you need to decide if you want to play should be listed
in the menu on the left. The problem is that once somebody moved they
won't show up in the list anymore, since from that point on the server
keeps track of who needs to move next.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGIFX: notes are now available during every phase of the game
Arun Persaud [Sun, 8 Jun 2008 17:29:20 +0000 (10:29 -0700)] 
BUGIFX: notes are now available during every phase of the game

you can now take notes also during the pre-game phase.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoNEW FEATURE: added caching to stats.php
Arun Persaud [Sun, 8 Jun 2008 17:09:23 +0000 (10:09 -0700)] 
NEW FEATURE: added caching to stats.php

since reloading always took a while and things don't really
change that much over a day, I added a caching to it.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: fixed a typo in the scoretable
Arun Persaud [Sun, 8 Jun 2008 03:47:41 +0000 (20:47 -0700)] 
BUGFIX: fixed a typo in the scoretable

Nr instead of No

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: fixed the layout of the userpage a bit
Arun Persaud [Sat, 7 Jun 2008 16:01:08 +0000 (09:01 -0700)] 
LAYOUT: fixed the layout of the userpage a bit

the size of the whole page is wider now and the middle column of the table is fixed to a certain width.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: fixed wrong use &amp; in mails
Arun Persaud [Sat, 7 Jun 2008 01:04:24 +0000 (18:04 -0700)] 
BUGFIX: fixed wrong use &amp; in mails

&amp; should replace & only in html output not in emails.

Signed-off-by: Arun Persaud <apersaud@lbl.gov>
15 years agoBUGIFX: fixed a layout issue in IE6
Arun Persaud [Wed, 4 Jun 2008 00:55:57 +0000 (17:55 -0700)] 
BUGIFX: fixed a layout issue in IE6

the tricks used the wrong parent for position:absolute. this might fix it.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoNEW FEATURE: statistics of most solos per game
Arun Persaud [Mon, 2 Jun 2008 02:34:10 +0000 (19:34 -0700)] 
NEW FEATURE: statistics of most solos per game

added a new statistic

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: moved score table and rules to the top
Arun Persaud [Sun, 1 Jun 2008 08:17:36 +0000 (01:17 -0700)] 
LAYOUT: moved score table and rules to the top

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>
15 years agoBUGFIX: pre/next button was displayed incorrect because of wrong </li> statement
Arun Persaud [Sat, 31 May 2008 20:11:19 +0000 (13:11 -0700)] 
BUGFIX: pre/next button was displayed incorrect because of wrong </li> statement

sometimes an extra </li></div> was issued which messed up the HTML.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: make html standard conform in debug mode
Arun Persaud [Sat, 31 May 2008 19:25:25 +0000 (12:25 -0700)] 
LAYOUT: make html standard conform in debug mode

hadn't checked debug mode with tidy

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: used tidy to clean up the HTML
Arun Persaud [Fri, 30 May 2008 05:51:19 +0000 (22:51 -0700)] 
CLEANUP: used tidy to clean up the HTML

got rid of a lot of warning message, HTML should be nicer now ;)

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: some text was outside a div. also fixed a html issue.
Arun Persaud [Fri, 30 May 2008 05:33:18 +0000 (22:33 -0700)] 
BUGFIX: some text was outside a div. also fixed a html issue.

moved the text back inside the div and also changed a & into a &amp;

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGIFX: wrong order in if-statement led to checking an (in some cases) uninitialized...
Arun Persaud [Fri, 30 May 2008 03:02:22 +0000 (20:02 -0700)] 
BUGIFX: wrong order in if-statement led to checking an (in some cases) uninitialized variable

changed the order and now everything should be fine.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: forgot to close a <li> and a <div> on the first trick played
Arun Persaud [Fri, 30 May 2008 02:46:51 +0000 (19:46 -0700)] 
BUGFIX: forgot to close a <li> and a <div> on the first trick played

messed up the html a bit, just a minor fix though

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: fixed some invalid html
Arun Persaud [Fri, 30 May 2008 00:47:36 +0000 (17:47 -0700)] 
CLEANUP: fixed some invalid html

replaced & with &amp; everywhere in game. and fixed a typo.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: floating tables on the statistics page
Arun Persaud [Mon, 26 May 2008 21:42:45 +0000 (14:42 -0700)] 
LAYOUT: floating tables on the statistics page

less text, captions are real captions not in paragraphs anymore, etc.
not sure about the floating arrangments, but still better than before

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: more tables on the statistics page
Arun Persaud [Mon, 26 May 2008 21:28:29 +0000 (14:28 -0700)] 
LAYOUT: more tables on the statistics page

changed the last two tables to the new CSS-tables.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: applied new table output to statistics page
Arun Persaud [Mon, 26 May 2008 18:22:55 +0000 (11:22 -0700)] 
LAYOUT: applied new table output to statistics page

most table on the statistics page should look nice now ;)

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: added a unified table layout for statistics, etc
Arun Persaud [Mon, 26 May 2008 18:08:51 +0000 (11:08 -0700)] 
LAYOUT: added a unified table layout for statistics, etc

a table that can be styled via CSS is created from an array.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoNEW FEATURE: add two buttons to move forward and backwards through the tricks
Arun Persaud [Sun, 25 May 2008 18:08:04 +0000 (11:08 -0700)] 
NEW FEATURE: add two buttons to move forward and backwards through the tricks

makes navigation through the games easier

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: fixed a typo in the text for poverty
Arun Persaud [Sun, 25 May 2008 17:35:33 +0000 (10:35 -0700)] 
BUGFIX: fixed a typo in the text for poverty

(reported by Lance)

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: only display user menu if it's your turn in some games
Arun Persaud [Sat, 24 May 2008 21:50:34 +0000 (14:50 -0700)] 
LAYOUT: only display user menu if it's your turn in some games

the user menu now only has the list of games in it, so no need to display it, if it is nor your turn in any games

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoLAYOUT: rearranged the user menu to show up in the top right corner
Arun Persaud [Sat, 24 May 2008 21:46:39 +0000 (14:46 -0700)] 
LAYOUT: rearranged the user menu to show up in the top right corner

also limited the amount of games that show up in the user menu if it is your turn

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoNEW FEATURE: automatically accept new games
Arun Persaud [Sat, 24 May 2008 20:33:55 +0000 (13:33 -0700)] 
NEW FEATURE: automatically accept new games

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>
15 years agoBUGIFX: game didn't get started in normal poverty games
Arun Persaud [Sat, 24 May 2008 20:08:12 +0000 (13:08 -0700)] 
BUGIFX: game didn't get started in normal poverty games

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>
15 years agoCLEANUP: removed todo item for silent solo from code
Arun Persaud [Sat, 24 May 2008 19:53:05 +0000 (12:53 -0700)] 
CLEANUP: removed todo item for silent solo from code

changed comments

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: typo in create_database
Arun Persaud [Fri, 23 May 2008 05:06:26 +0000 (22:06 -0700)] 
BUGFIX: typo in create_database

missed a comma (found by Sean).

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGIFX: more accurate display of whos turn it is
Arun Persaud [Fri, 23 May 2008 04:43:00 +0000 (21:43 -0700)] 
BUGIFX: more accurate display of whos turn it is

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>
15 years agoLAYOUT: added user menu to newgame page also when you started a game
Arun Persaud [Fri, 23 May 2008 04:32:46 +0000 (21:32 -0700)] 
LAYOUT: added user menu to newgame page also when you started a game

once you started a game you only got a message telling you that, but no way to get back to your user page with all the links.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: setting the gametype gave away information in case someone wanted to play...
Arun Persaud [Tue, 20 May 2008 01:54:18 +0000 (18:54 -0700)] 
BUGFIX: setting the gametype gave away information in case someone wanted to 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>
15 years agoBUGFIX: forgot to set default values for some new variables
Arun Persaud [Mon, 19 May 2008 00:45:03 +0000 (17:45 -0700)] 
BUGFIX: forgot to set default values for some new variables

$GAME['schweinchen-who'] was not necessary defined

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: forgot to initialize a variable
Arun Persaud [Sun, 18 May 2008 18:46:46 +0000 (11:46 -0700)] 
BUGFIX: forgot to initialize a variable

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: show schweinchen has highest trump in your hand
Arun Persaud [Sun, 18 May 2008 18:48:25 +0000 (11:48 -0700)] 
BUGFIX: show schweinchen has highest trump in your hand

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>
15 years agoBUGFIX: problem with Schweinchen during pre-game phase
Arun Persaud [Sun, 18 May 2008 18:11:40 +0000 (11:11 -0700)] 
BUGFIX: problem with Schweinchen during pre-game phase

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>
15 years agoBUGFIX: show comment for Schweinchen the moment it is played
Arun Persaud [Sun, 18 May 2008 17:31:34 +0000 (10:31 -0700)] 
BUGFIX: show comment for Schweinchen the moment it is played

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>
15 years agoLAYOUT: added a CSS reset
Arun Persaud [Sun, 18 May 2008 17:11:34 +0000 (10:11 -0700)] 
LAYOUT: added a CSS reset

hopefully makes IE pages look better ;)

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: diamond was added twice in defining the sorting order for the cards
Arun Persaud [Sat, 17 May 2008 18:13:55 +0000 (11:13 -0700)] 
BUGFIX: diamond was added twice in defining the sorting order for the cards

probably never did any harm, but long anyway
Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: rewrote code for Schweinchen
Arun Persaud [Sat, 17 May 2008 18:02:37 +0000 (11:02 -0700)] 
CLEANUP: rewrote code for Schweinchen

should be easier to add some new features now.
Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: scoring of silent solo was wrong
Arun Persaud [Fri, 16 May 2008 01:41:08 +0000 (18:41 -0700)] 
BUGFIX: scoring of silent solo was wrong

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>
15 years agoBUGFIX: wrong messages for email notification in preferences
Arun Persaud [Fri, 16 May 2008 01:10:11 +0000 (18:10 -0700)] 
BUGFIX: wrong messages for email notification in preferences

emailaddict said "lots of emails" but should say "less emails"
Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGIFX: during each reload of a game, the starplayer got reset and emails got send out
Arun Persaud [Tue, 13 May 2008 20:50:43 +0000 (13:50 -0700)] 
BUGIFX: during each reload of a game, the starplayer got reset and emails 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>
15 years agoBUGFIX: some variables where not defined after moving some code around
Arun Persaud [Tue, 13 May 2008 05:59:21 +0000 (22:59 -0700)] 
BUGFIX: some variables where not defined after moving some code around

forgot to add some variables as globals, while moving code to a function.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: rewrote poverty, should fix lots of bugs
Arun Persaud [Sun, 11 May 2008 22:48:05 +0000 (15:48 -0700)] 
BUGFIX: rewrote poverty, should fix lots of bugs

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>
15 years agoNEW FEATURE: display if someone is sick during the init phase
Arun Persaud [Sun, 11 May 2008 05:30:52 +0000 (22:30 -0700)] 
NEW FEATURE: display if someone is sick during the init phase

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>
15 years agoLAYOUT: repaired the layout for starting a new game
Arun Persaud [Sun, 11 May 2008 04:42:49 +0000 (21:42 -0700)] 
LAYOUT: repaired the layout for starting a new game

the table was offset and some text was overlayed by the table.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoNEW FEATURE: new settings page, user can now change timezone
Arun Persaud [Sat, 10 May 2008 19:15:35 +0000 (12:15 -0700)] 
NEW FEATURE: new settings page, user can now change timezone

rewrote the settings page, timezone can now be changed, the user menu
shows up on the left on the pref page. Added a link to the pref-page in the left menu.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: reorganized the 'init' phase of a game
Arun Persaud [Fri, 9 May 2008 03:40:43 +0000 (20:40 -0700)] 
CLEANUP: reorganized the 'init' phase of a game

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>
15 years agoBUGIFX: typo in a call to a database function
Arun Persaud [Fri, 9 May 2008 00:28:29 +0000 (17:28 -0700)] 
BUGIFX: typo in a call to a database function

nothing critical

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: moved html from output.php to welcome.php
Arun Persaud [Wed, 7 May 2008 05:21:11 +0000 (22:21 -0700)] 
CLEANUP: moved html from output.php to welcome.php

since we now have several files in the include directory, it makes more sense to keep the html directly in the file for some cases instead of putting it in output.php.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: removed all calls to mysql functions and replaced them with calls to DB_xxx
Arun Persaud [Wed, 7 May 2008 03:08:53 +0000 (20:08 -0700)] 
CLEANUP: removed all calls to mysql functions and replaced them with calls 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>
15 years agoBUGFIX: typo in scoring algorithm
Arun Persaud [Wed, 7 May 2008 02:10:21 +0000 (19:10 -0700)] 
BUGFIX: typo in scoring algorithm

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>
15 years agoNEW FEATURES: show global statistic
Arun Persaud [Mon, 5 May 2008 02:40:10 +0000 (19:40 -0700)] 
NEW FEATURES: show global statistic

show points/game for all players that have 10 or more games

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: moved the statistics page into the include directory
Arun Persaud [Fri, 2 May 2008 03:15:35 +0000 (20:15 -0700)] 
CLEANUP: moved the statistics page into the include directory

added action=stats and moved the stats.php page to the include directory. Now we
have a nice small index.php. Also moved the session_start in front of the includes,
since it gave me an error on the mac otherwise?!

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoBUGFIX: couldn't restart a finished game; force reload of CSS
Arun Persaud [Mon, 28 Apr 2008 00:43:11 +0000 (17:43 -0700)] 
BUGFIX: couldn't restart a finished game; force reload of CSS

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>
15 years agoCLEANUP: moved register.php to the include directory
Arun Persaud [Sat, 26 Apr 2008 20:16:24 +0000 (13:16 -0700)] 
CLEANUP: moved register.php to the include directory

new users are now also automatically logged in.

Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: cleaned up index.php a bit more by introducing an 'action' variable
Arun Persaud [Sat, 26 Apr 2008 20:01:41 +0000 (13:01 -0700)] 
CLEANUP: cleaned up index.php a bit more by introducing an 'action' variable

no more if, but one nice switch statement in index.php
Signed-off-by: Arun Persaud <arun@nubati.net>
15 years agoCLEANUP: make index.php very short and move everything in separate files
Arun Persaud [Sat, 26 Apr 2008 18:52:49 +0000 (11:52 -0700)] 
CLEANUP: make index.php very short and move everything in separate files

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>
16 years agoBUGFIX: couldn't unclick no90 call
Arun Persaud [Wed, 16 Apr 2008 23:28:00 +0000 (16:28 -0700)] 
BUGFIX: couldn't unclick no90 call

radio buttons for calling "no 120", "no 90", etc. had all different names and
therefore clicking a second one, didn't unclick the first one.

Signed-off-by: Arun Persaud <apersaud@lbl.gov>
16 years agoBUGFIX: counted foxes wrong for poverty
Arun Persaud [Tue, 15 Apr 2008 04:06:04 +0000 (21:06 -0700)] 
BUGFIX: counted foxes wrong for poverty

had two cases (no schweinchen and two schweinchen) mixed up.

Signed-off-by: Arun Persaud <arun@nubati.net>
16 years agoBUGFIX: adding new users was broken
Arun Persaud [Tue, 8 Apr 2008 06:04:56 +0000 (23:04 -0700)] 
BUGFIX: adding new users was broken

forgot to update the insert statement for the db when changing
the user table a while ago. fixed now.

Signed-off-by: Arun Persaud <arun@nubati.net>
16 years agoNEW FEATURE: some more statistics
Arun Persaud [Tue, 8 Apr 2008 05:59:23 +0000 (22:59 -0700)] 
NEW FEATURE: some more statistics

list the number of games a user is in at the moment and another list
for the total number of games. Also list people that manage not to lose
their foxes.

Signed-off-by: Arun Persaud <arun@nubati.net>
16 years agoCLEANUP: started some database cleanup and added some more comments
Arun Persaud [Mon, 7 Apr 2008 05:25:44 +0000 (22:25 -0700)] 
CLEANUP: started some database cleanup and added some more comments

instead of having a different function for each possible way to query
for example the full name of a player, there is now only one function
with a switch statement that handles the different cases. Still not
100% perfect, but I think nicer to read than before.

Signed-off-by: Arun Persaud <arun@nubati.net>
16 years agoBUGFIX: a comment for schweinchen was issued even in solo games without schweinchen
Arun Persaud [Sat, 29 Mar 2008 17:45:59 +0000 (10:45 -0700)] 
BUGFIX: a comment for schweinchen was issued even in solo games without schweinchen

fixed the comment issue and also added trump solo to games where schweinchen will count

Signed-off-by: Arun Persaud <arun@nubati.net>
16 years agoBUGFIX: Karlchen and fox weren't accounted for in solos
Arun Persaud [Sat, 29 Mar 2008 17:23:35 +0000 (10:23 -0700)] 
BUGFIX: Karlchen and fox weren't accounted for in solos

this made sense in some solos, e.g. trumpless, but not in some other solos, e.g. normal trump solo.

Signed-off-by: Arun Persaud <arun@nubati.net>
16 years agoLAYOUT: keep notes area from overflowing
Arun Persaud [Wed, 19 Mar 2008 20:05:56 +0000 (13:05 -0700)] 
LAYOUT:  keep notes area from overflowing

added overflow auto to CSS and fixed the height of the div. Depending
on the screen size there might be overlap now, but at least the notes
area won't grow like crazy in case you add too many notes.

Signed-off-by: Arun Persaud <apersaud@lbl.gov>
16 years agoBUGFIX: Typo in one of the emails
Arun Persaud [Wed, 19 Mar 2008 19:52:37 +0000 (12:52 -0700)] 
BUGFIX: Typo in one of the emails

fixed a small typo

Signed-off-by: Arun Persaud <apersaud@lbl.gov>