Arun Persaud [Sat, 1 Nov 2008 23:51:18 +0000 (16:51 -0700)]
CLEANUP: cleaned up CSS a bit
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...
Arun Persaud [Tue, 21 Oct 2008 02:54:13 +0000 (19:54 -0700)]
BUGFIX: make user menu and personal notes appear again
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)
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
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.
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.
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.
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.
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
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.
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.
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...
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.
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.
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.
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.
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.
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.
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.
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...
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.
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.
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.
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?!
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.
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 ;)