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 ;)
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.
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.
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.
Arun Persaud [Fri, 14 Mar 2008 04:37:06 +0000 (21:37 -0700)]
BUGFIX: some stats should really be displayed as an average per game...fixed
The number of foxes caught/lost was displayed in absolut numbers, which didn't
look good for people who played a lot of games. So now it's on a per game basis.
Arun Persaud [Wed, 12 Mar 2008 05:21:09 +0000 (22:21 -0700)]
NEW FEATURE: Ability to add personal notes for each game
In case a player is involed in too many games it can get quite confusing with
whom your playing, etc. so now the player can add notes on the side that only
show up on his/her screen.
Arun Persaud [Sat, 5 Jan 2008 21:43:53 +0000 (22:43 +0100)]
CLEANUP: started rewrite of pre-game phase, fixed 'start' section
the whole process is not very easy to read... you could get from start to init, but then
the error check for the start phase was done during the init phase and if something went
wrong init sent you back to the start-phase... now all error-checking for the start-phase
is done during the start phase. should be a bit easier to read ;)
Still need to fix the other sections Signed-off-by: Arun Persaud <arun@nubati.net>
Arun Persaud [Sat, 5 Jan 2008 21:24:10 +0000 (22:24 +0100)]
BUGFIX: didn't set next player correctly during startup
in db.game the next player is set with his user.id, but I used the
position at the table in some places. fixed now Signed-off-by: Arun Persaud <arun@nubati.net>
Arun Persaud [Sat, 5 Jan 2008 21:08:17 +0000 (22:08 +0100)]
NEW FEATURE: show Vorbehalte in each game
Vorbehalte are now shown in the same list as tricks and the score, so that players
can go back and have a look at who said what Signed-off-by: Arun Persaud <arun@nubati.net>
Arun Persaud [Sun, 16 Dec 2007 13:54:06 +0000 (14:54 +0100)]
BUGFIX: time display used wrong timezones. also optimized things a bit
Got rid of a few db-queries for getting the right timezone. The timezone was also set after the timefunction was called and therefore the timezone didn't have any effect.
Arun Persaud [Fri, 2 Nov 2007 10:23:45 +0000 (11:23 +0100)]
NEW FEATURE: count game points, partly done ;)
a table will be shown now for score keeping.
fox, karlchen and dokos are accounted for
normal win, calling something and winning should be accounted for
still missing:
both parties call or one party calls and doesn't acchieve it's goal
Arun Persaud [Wed, 31 Oct 2007 20:07:59 +0000 (21:07 +0100)]
BUGFIX: player could select several vorbehalte at the same time
no the prog checks and sends the player back to the questionary, before it wasn't clear to the user which vorbehalt would be used (e.g. wedding or poverty)
Arun Persaud [Wed, 31 Oct 2007 09:45:28 +0000 (10:45 +0100)]
BUGFIX: no check for a followup game if someone else already started one
several people could start a followup game (or one person hitting reload) and several games were started. Now the prog checks if there is already an active game.
Arun Persaud [Mon, 29 Oct 2007 19:29:42 +0000 (20:29 +0100)]
BUGFIX: when playing with both schweinchen
they second fox always became the highest trump, even if the two
foxes where not on the same hand.
Also: every fox led to a comment:"schweinchen".
Both fixed now.
Arun [Tue, 9 Oct 2007 10:50:22 +0000 (12:50 +0200)]
LAYOUT: 1st round of changes to get rid of overlapping areas
centered table, moved menus to correct place (this also fixed
a bug that still showed that it was your turn in a game after
you moved) and some other small changes.
Arun Persaud [Sat, 4 Aug 2007 16:52:56 +0000 (09:52 -0700)]
LAYOUT: fixed some overlaying of boxes (but not all), made userpage a bit nicer
a bit more html on the user page and the session are displayed differently now.
Also fixed a few small html errors, moved the link for new games into the menu
and probably some small things I don't remember right now ;)
LAYOUT: final score is displayed on the table; played card is displayed in trick
added another trick as trick13 that displays the final score. Also moved the
played card to show up as a normal card and not in the middle of the table anymore.