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.
BUGFIX: using the recovery password to change your password
to change your password you needed your old password, the recovery
password didn't work, which made it hard to change it, in case you
forgot your old password... fixed
Arun Persaud [Fri, 29 Jun 2007 17:18:51 +0000 (19:18 +0200)]
NEW FEATURE+BUGFIX: changed calling re/contra
you can call re/contra, etc. now even if it is not your turn.
Also fixed rule where you can say 90 with 9 cards, etc. so that
you need to say 120 to say 90, 90 to say 60, etc.
used php session, so that people can actually log in and out
and linking from one page to another can be done easily without
using form to send the password as a hidden parameter over the
net all the time
people complained about too many solos ;) so I changed
from the standard php random generator to a better one.
Not sure if that solves the problem though ;)
Arun Persaud [Thu, 28 Jun 2007 20:36:51 +0000 (22:36 +0200)]
BUGFIX: reload during the setup could mess up the state machine
if a user hits reload during the questions for the vorbehalt, the server
printed an error message and the game could not continue. Now this is detected
and the user is send back to the right page during the setup and can continue normally.
Arun Persaud [Thu, 21 Jun 2007 14:22:36 +0000 (16:22 +0200)]
CLEANUP: counting points, prepare for keeping track of game points
use the database now to add up points, cleaned up the code a bit (counting
points was done in different places), don't use score table for points from cards any more
Arun Persaud [Sat, 23 Jun 2007 13:53:30 +0000 (15:53 +0200)]
NEW FEATURE: password recovery is now working
Added a simple form of password recovery. The user gets send an email
with the new password, which is valid for 24h. The user can request a
maximum of 5 passwords within 24h to prevent filling up the database
with garbage.
Arun Persaud [Sun, 17 Jun 2007 19:53:29 +0000 (21:53 +0200)]
BUGFIX: CC'ed on final game allowed to view different accounts
When people got CC'ed on the final email, they also got copies of everyones
email and the link to the game in that email. That way they could go to the
user page of a different user.
Removed CC option and will just send out two emails from now on. The first one to
all players (reply all possible) and the second one with the personal link.
Arun Persaud [Sun, 17 Jun 2007 16:55:34 +0000 (18:55 +0200)]
NEW FEATURE: reuse random numbers from old games
random numbers generated for old games are reused in case none
of the players were in that old game. Will be interesting how different
people play with the same hand ;)