Age | Commit message (Collapse) | Author | Files | Lines |
|
makes navigation through the games easier
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
(reported by Lance)
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
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>
|
|
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>
|
|
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>
|
|
changed comments
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
missed a comma (found by Sean).
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
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>
|
|
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>
|
|
$GAME['schweinchen-who'] was not necessary defined
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
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>
|
|
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>
|
|
hopefully makes IE pages look better ;)
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
probably never did any harm, but long anyway
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
should be easier to add some new features now.
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
emailaddict said "lots of emails" but should say "less emails"
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
forgot to add some variables as globals, while moving code to a function.
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
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>
|
|
the table was offset and some text was overlayed by the table.
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
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>
|
|
nothing critical
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
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>
|
|
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>
|
|
show points/game for all players that have 10 or more games
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
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>
|
|
new users are now also automatically logged in.
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
no more if, but one nice switch statement in index.php
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
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>
|
|
had two cases (no schweinchen and two schweinchen) mixed up.
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
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>
|
|
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>
|
|
schweinchen
fixed the comment issue and also added trump solo to games where schweinchen will count
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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>
|
|
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>
|
|
fixed a small typo
Signed-off-by: Arun Persaud <apersaud@lbl.gov>
|
|
managed to comment the code a bit more ;)
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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.
Signed-off-by: Arun Persaud <arun@nubati.net>
|
|
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.
Signed-off-by: Arun Persaud <arun@nubati.net>
|