e-DoKo.git
16 years agoBUGFIX: order games by session
Arun Persaud [Mon, 30 Jul 2007 02:17:51 +0000 (19:17 -0700)] 
BUGFIX: order games by session

games are now ordered by sessions, also fixed a typo

16 years agoBUGIFX+LAYOUT: gameids where still in the player menu; show table for new game setup
Arun Persaud [Mon, 30 Jul 2007 02:12:11 +0000 (19:12 -0700)] 
BUGIFX+LAYOUT: gameids where still in the player menu; show table for new game setup

fixed last commit.
for new games, the table is now shown and one can select the place people are sitting
better.

16 years agoLAYOUT: address game by session.gamenr
Arun Persaud [Mon, 30 Jul 2007 01:54:14 +0000 (18:54 -0700)] 
LAYOUT: address game by session.gamenr

don't use gameid, but use session.gamenumber instead. needs this for tournaments later.
new games will get a session number now by default.

16 years agoLAYOUT: final score is displayed on the table; played card is displayed in trick
Arun Persaud [Sun, 29 Jul 2007 17:39:34 +0000 (10:39 -0700)] 
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.

16 years agoLAYOUT: started work on new layout
Arun Persaud [Sat, 28 Jul 2007 19:23:20 +0000 (12:23 -0700)] 
LAYOUT: started work on new layout

table is also shown during setup of the game
user menu on the left, game menu on the right
user menu shows games in which you have to move

16 years agoBUGFIX: use email reply address for sending
Arun Persaud [Sat, 28 Jul 2007 17:16:43 +0000 (10:16 -0700)] 
BUGFIX: use email reply address for sending

the ini_set method didn't seem to work for some reason.
Setting the From in the header does work though

16 years agoCLEANUP: moved registration to seperate php file
Arun Persaud [Sat, 28 Jul 2007 16:44:33 +0000 (09:44 -0700)] 
CLEANUP: moved registration to seperate php file

started cleanup on index.php. trying to move as much out of index.php
as possible to make it easier to read.

16 years agoCLEANUP: working on database now a config.php option
Arun Persaud [Sat, 28 Jul 2007 17:04:38 +0000 (10:04 -0700)] 
CLEANUP: working on database now a config.php option

moved error checking into a function and made working on the database a config.php
option

16 years agoBUGFIX: change link from svn to git
Arun Persaud [Sat, 28 Jul 2007 16:19:23 +0000 (09:19 -0700)] 
BUGFIX: change link from svn to git

updated footer to point to the new git repository

16 years agoBUGFIX: reusing old randomnumbers didn't work
Arun Persaud [Fri, 20 Jul 2007 18:09:00 +0000 (11:09 -0700)] 
BUGFIX: reusing old randomnumbers didn't work

old numbers got reused, but more than once for the same people
should be fixed now.

16 years agoBUGFIX: using the recovery password to change your password
Arun Persaud [Thu, 19 Jul 2007 06:51:23 +0000 (23:51 -0700)] 
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

16 years agoNEW FEATURE+BUGFIX: changed calling re/contra
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.

16 years agoNEW FEATURE: use php session
Arun Persaud [Thu, 19 Jul 2007 05:26:29 +0000 (22:26 -0700)] 
NEW FEATURE: use php session

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

16 years agoNEW FEATURE: use a better random generator
Arun Persaud [Thu, 19 Jul 2007 05:21:43 +0000 (22:21 -0700)] 
NEW FEATURE: use a better random generator

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 ;)

16 years agoLAYOUT: fixed small bug, probably only showed up on small windows
Arun Persaud [Wed, 18 Jul 2007 05:15:10 +0000 (22:15 -0700)] 
LAYOUT: fixed small bug, probably only showed up on small windows

the session and the trick menu didn't use the full width of the screen,
because they were cut off by the floating divs on the left

16 years agoBUGFIX: cards didn't show up anymore at the end of the game
Arun Persaud [Wed, 4 Jul 2007 17:44:52 +0000 (10:44 -0700)] 
BUGFIX: cards didn't show up anymore at the end of the game

forgot to check in an if-clause if the player was still playing or if the game was already over

16 years agoNEW FEATURE: allow multiple comments
Arun Persaud [Fri, 29 Jun 2007 16:22:01 +0000 (18:22 +0200)] 
NEW FEATURE: allow multiple comments

you can now also comment, if it is not your turn,
and up to 7 days after the game finished.
doubled size of comments too

16 years agoBUGFIX: final email didn't add up points for re/contra
Arun Persaud [Fri, 29 Jun 2007 11:10:18 +0000 (13:10 +0200)] 
BUGFIX: final email didn't add up points for re/contra

had a wrong GROUP BY SQL statement in the code.

16 years agoCLEANUP: make the code look a bit nicer
Arun Persaud [Thu, 28 Jun 2007 20:49:06 +0000 (22:49 +0200)] 
CLEANUP: make the code look a bit nicer

just a few small things

16 years agoBUGFIX: reload during the setup could mess up the state machine
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.

16 years agoBUGFIX: redeal in case of solo in tournament, add hint in case of 5 nines on howto...
Arun Persaud [Thu, 28 Jun 2007 19:57:36 +0000 (21:57 +0200)] 
BUGFIX: redeal in case of solo in tournament, add hint in case of 5 nines on howto redeal

16 years agoLAYOUT: updated icons from Lance
Arun Persaud [Mon, 25 Jun 2007 14:22:59 +0000 (16:22 +0200)] 
LAYOUT: updated icons from Lance

new icons for trump solo and spade solo

16 years agoBUGFIX: fixed bug in getting randomnumbers from a previous game
Arun Persaud [Mon, 25 Jun 2007 09:44:30 +0000 (11:44 +0200)] 
BUGFIX: fixed bug in getting randomnumbers from a previous game

DB querry was missing a column

16 years agoCLEANUP: counting points, prepare for keeping track of game points
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

16 years agoBUGFIX: include $call in $ruleset
Arun Persaud [Sun, 24 Jun 2007 11:28:50 +0000 (13:28 +0200)] 
BUGFIX: include $call in $ruleset

$call wasn't added everywhere where a new ruleset was defined;

16 years agoNEW FEATURE: added admin name and email address to be configurable
Arun Persaud [Sat, 23 Jun 2007 17:14:58 +0000 (19:14 +0200)] 
NEW FEATURE: added admin name and email address to be configurable

email and name can be defined in config.php. Errors are send to that email address.

16 years agoBUGFIX: displaying the player who has to move during setup
Arun Persaud [Sun, 24 Jun 2007 07:55:05 +0000 (09:55 +0200)] 
BUGFIX: displaying the player who has to move during setup

the server should now correctly dispaly who need to do a move
during the setup.

16 years agoCLEANUP: get card names from the database
Arun Persaud [Sun, 24 Jun 2007 09:30:20 +0000 (11:30 +0200)] 
CLEANUP: get card names from the database

16 years agoNEW FEATURE: password recovery is now working
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.

16 years agoBUGFIX: typo for emails at the end of game; able to set return address
Arun Persaud [Sat, 23 Jun 2007 17:19:41 +0000 (19:19 +0200)] 
BUGFIX: typo for emails at the end of game; able to set return address

used php.ini to set the return address for emails.
fixed typo in variable that prevented sending of emails at the end of the game

16 years agoLAYOUT: added icons from Lance
Arun Persaud [Wed, 20 Jun 2007 08:28:04 +0000 (10:28 +0200)] 
LAYOUT: added icons from Lance

re/contra/120...0 and wedding now have icons

16 years agoCLEANUP: code + text messages
Arun Persaud [Tue, 19 Jun 2007 20:57:17 +0000 (22:57 +0200)] 
CLEANUP: code + text messages

cleaned up the code and corrected some typos

16 years agoNEW FEATURE: show all hands at the end of a game
Arun Persaud [Tue, 19 Jun 2007 08:45:05 +0000 (10:45 +0200)] 
NEW FEATURE: show all hands at the end of a game

Now everyone can see all the cards at the end of a game.

16 years agoBUGFIX: CC'ed on final game allowed to view different accounts
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.

16 years agoMerge branch 'dealing-reuse'
Arun Persaud [Sun, 17 Jun 2007 16:57:21 +0000 (18:57 +0200)] 
Merge branch 'dealing-reuse'

16 years agoNEW FEATURE: reuse random numbers from old games
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 ;)

16 years agocode cleanup
Arun Persaud [Sat, 16 Jun 2007 19:11:28 +0000 (21:11 +0200)] 
code cleanup

16 years agoadded a missing .gitignore file
Arun Persaud [Sat, 16 Jun 2007 16:52:44 +0000 (18:52 +0200)] 
added a missing .gitignore file

added *~ (e.g. emacs backups) to gitignore

16 years agoBUGFIX: adding a new game had a bug in the INSERT statement; wedding offset in can_ca...
arun [Tue, 12 Jun 2007 11:37:28 +0000 (11:37 +0000)] 
BUGFIX: adding a new game had a bug in the INSERT statement; wedding offset in can_call had wrong sign

16 years agobugfix: typo in last commit
arun [Thu, 7 Jun 2007 18:34:38 +0000 (18:34 +0000)] 
bugfix: typo in last commit

16 years ago* FIX: added extra check for calling 120, etc. so that people can't cheat
arun [Thu, 7 Jun 2007 18:09:08 +0000 (18:09 +0000)] 
* FIX: added extra check for calling 120, etc.  so that people can't cheat
* NEW: display sessions
* NEW: display who's turn it is on the userpage (change in DB)
* NEW: different ways when to say 90, 60, etc.  (change in DB)
* MISC: some clean up, e.g. display of final score

16 years agobugfix: the gamenumber wasn't shown in all email subjects
arun [Mon, 4 Jun 2007 13:07:55 +0000 (13:07 +0000)] 
bugfix: the gamenumber wasn't shown in all email subjects

16 years agosmall fixes, typo, etc
arun [Mon, 4 Jun 2007 12:51:02 +0000 (12:51 +0000)] 
small fixes, typo, etc

16 years agoadded output of average time for a game on the homepage
arun [Sat, 2 Jun 2007 16:25:28 +0000 (16:25 +0000)] 
added output of average time for a game on the homepage

16 years agoBUGFIX: guess I should test again before commiting :)
arun [Sat, 2 Jun 2007 15:50:35 +0000 (15:50 +0000)] 
BUGFIX: guess I should test again before commiting :)

16 years agonew feature: added checks for re/contra/90 etc. ; fixed: some measages were outdated
arun [Sat, 2 Jun 2007 15:40:16 +0000 (15:40 +0000)] 
new feature: added checks for re/contra/90 etc. ; fixed: some measages were outdated

16 years ago bugfix: last revision had some typos, fixed now
arun [Fri, 1 Jun 2007 13:40:44 +0000 (13:40 +0000)] 
 bugfix: last revision had some typos, fixed now

16 years agoadded some more hints for what kind of game is happening at the table; cleanup
arun [Mon, 28 May 2007 16:12:50 +0000 (16:12 +0000)] 
added some more hints for what kind of game is happening at the table; cleanup

16 years agofix: missed a ;
arun [Tue, 22 May 2007 09:52:17 +0000 (09:52 +0000)] 
fix: missed a ;

16 years agofeature: added link to game in final email, CC'ed people in final email
arun [Tue, 22 May 2007 09:49:07 +0000 (09:49 +0000)] 
feature: added link to game in final email, CC'ed people in final email

16 years agofixed bug in shuffle function
arun [Mon, 21 May 2007 12:04:05 +0000 (12:04 +0000)] 
fixed bug in shuffle function

16 years agomore emails during poverty, game number is displayed in email
arun [Fri, 18 May 2007 20:47:48 +0000 (20:47 +0000)] 
more emails during poverty, game number is displayed in email

16 years agoproblem with sql syntax: used a reserverd word
arun [Thu, 17 May 2007 12:51:21 +0000 (12:51 +0000)] 
problem with sql syntax: used a reserverd word

16 years agowedding should work now, started working on calling 120/90/60/30/0, small bugfixes
arun [Thu, 17 May 2007 12:29:55 +0000 (12:29 +0000)] 
wedding should work now, started working on calling 120/90/60/30/0, small bugfixes

16 years agofound a bug in the shuffling routine
arun [Wed, 16 May 2007 12:34:17 +0000 (12:34 +0000)] 
found a bug in the shuffling routine

16 years agofix: hash collision after a game has been cancled and the gameid is being reused.
arun [Wed, 25 Apr 2007 08:17:43 +0000 (08:17 +0000)] 
fix: hash collision after a game has been cancled and the gameid is being reused.

16 years agodebugging was on for creating the hands -> no random numbers
arun [Sun, 22 Apr 2007 20:46:14 +0000 (20:46 +0000)] 
debugging was on for creating the hands -> no random numbers

17 years agowrong pic for the 10 of heart
arun [Sat, 14 Apr 2007 13:54:01 +0000 (13:54 +0000)] 
wrong pic for the 10 of heart

17 years agosome more testing and bugfixes
arun [Sat, 14 Apr 2007 10:34:28 +0000 (10:34 +0000)] 
some more testing and bugfixes

17 years agopoverty should work now! added german card deck, tons of small fixes
arun [Thu, 12 Apr 2007 07:33:07 +0000 (07:33 +0000)] 
poverty should work now! added german card deck, tons of small fixes

17 years agolots of small fixes and cleanup
arun [Wed, 11 Apr 2007 08:15:47 +0000 (08:15 +0000)] 
lots of small fixes and cleanup

17 years agoadded email to first player at the beginning of the game; fixed small layout issue
arun [Tue, 10 Apr 2007 15:26:58 +0000 (15:26 +0000)] 
added email to first player at the beginning of the game; fixed small layout issue

17 years agoremoved one debug message; added timestamp update for game when playing a card
arun [Tue, 10 Apr 2007 08:58:23 +0000 (08:58 +0000)] 
removed one debug message; added timestamp update for game when playing a card

17 years agominor cleanup
arun [Mon, 9 Apr 2007 09:25:29 +0000 (09:25 +0000)] 
minor cleanup

17 years agomore cleanup
arun [Mon, 9 Apr 2007 08:06:01 +0000 (08:06 +0000)] 
more cleanup

17 years agomore cleanup, the layout for the pre game stuff is now probably broken:(
arun [Sun, 8 Apr 2007 20:08:24 +0000 (20:08 +0000)] 
more cleanup, the layout for the pre game stuff is now probably broken:(

17 years agocleaned up the interface a bit
arun [Sun, 8 Apr 2007 19:49:22 +0000 (19:49 +0000)] 
cleaned up the interface a bit

17 years agofixed & in html
arun [Sun, 8 Apr 2007 17:09:32 +0000 (17:09 +0000)] 
fixed & in html

17 years agoadded footer, moved revision into footer
arun [Sun, 8 Apr 2007 17:06:04 +0000 (17:06 +0000)] 
added footer, moved revision into footer

17 years agoPreparation for adding german cards
arun [Sat, 24 Mar 2007 21:31:28 +0000 (21:31 +0000)] 
Preparation for adding german cards

17 years agosome missing html and some more comments
arun [Sat, 24 Mar 2007 21:24:36 +0000 (21:24 +0000)] 
some missing html and some more comments

17 years agofoxes should now work correctly
arun [Mon, 12 Feb 2007 18:25:29 +0000 (18:25 +0000)] 
foxes should now work correctly

17 years ago* rewrote checking for sickness, the player now sees a nice summary before getting...
arun [Thu, 8 Feb 2007 19:19:11 +0000 (19:19 +0000)] 
* rewrote checking for sickness, the player now sees a nice summary before getting to the table...
* wedding is now announced
* for solo and normal games, re and contra are assigned correctly
* the score for re and contra is computed at the end
* used one variable $CARDS instead of several global ones e.g. $CARDS["trump"] instead of $TRUMP

17 years agofixed: bug in routine to figure out the next player
arun [Wed, 7 Feb 2007 17:48:24 +0000 (17:48 +0000)] 
fixed: bug in routine to figure out the next player

added rulesets (change  in database): at the beginning of a game differnt rules can be chosen

17 years agofeature request: show complete hand for completed games
arun [Tue, 6 Feb 2007 02:03:39 +0000 (02:03 +0000)] 
feature request: show complete hand for completed games

17 years agoa bit of code cleanup
arun [Sat, 3 Feb 2007 22:07:21 +0000 (22:07 +0000)] 
a bit of code cleanup

17 years agowhen starting a new game, games can't be selected twice anymore and are randomly...
arun [Sat, 3 Feb 2007 05:29:17 +0000 (05:29 +0000)] 
when starting a new game, games can't be selected twice anymore and are randomly pre-selected

17 years agoonly ask for a new game in a session, if it was the latest game
arun [Sat, 3 Feb 2007 05:13:42 +0000 (05:13 +0000)] 
only ask for a new game in a session, if it was the latest game

17 years agoadded session to database
arun [Sat, 3 Feb 2007 04:57:04 +0000 (04:57 +0000)] 
added session to database

17 years agocleaned up the user page a bit
arun [Sat, 3 Feb 2007 04:33:02 +0000 (04:33 +0000)] 
cleaned up the user page a bit

17 years agofixed a typo
arun [Sat, 3 Feb 2007 04:25:41 +0000 (04:25 +0000)] 
fixed a typo

17 years agoyou can now cancle games, if they are older than a month
arun [Sat, 3 Feb 2007 04:24:35 +0000 (04:24 +0000)] 
you can now cancle games, if they are older than a month

17 years agoadded a uniform list name for emails
arun [Sat, 3 Feb 2007 03:53:40 +0000 (03:53 +0000)] 
added a uniform list name for emails

17 years agobetter selection of players for new game
arun [Sat, 3 Feb 2007 03:46:41 +0000 (03:46 +0000)] 
better selection of players for new game

17 years agoadded game number to game display
arun [Fri, 26 Jan 2007 12:17:32 +0000 (12:17 +0000)] 
added game number to game display

17 years agostarted work on canceling games
arun [Fri, 26 Jan 2007 11:59:05 +0000 (11:59 +0000)] 
started work on canceling games

17 years agofixed the new sorting algorithm
arun [Tue, 16 Jan 2007 15:11:17 +0000 (15:11 +0000)] 
fixed the new sorting algorithm

17 years agonew sort function; should sorrt correctly for solos,etc
arun [Tue, 16 Jan 2007 15:00:03 +0000 (15:00 +0000)] 
new sort function; should sorrt correctly for solos,etc

17 years agofixed the revision number thing ;)
arun [Sun, 14 Jan 2007 13:48:22 +0000 (13:48 +0000)] 
fixed the revision number thing ;)

17 years agoadded displau of revsion number
arun [Sun, 14 Jan 2007 13:43:17 +0000 (13:43 +0000)] 
added displau of revsion number

17 years agofixed: provided links for new games, so that reloading is not required anymore
arun [Sun, 14 Jan 2007 12:20:39 +0000 (12:20 +0000)] 
fixed: provided links for new games, so that reloading is not required anymore

17 years agofixed: correct startplayer for solos
arun [Sun, 14 Jan 2007 12:17:06 +0000 (12:17 +0000)] 
fixed: correct startplayer for solos

17 years agosome small bugfixes
arun [Fri, 12 Jan 2007 16:00:56 +0000 (16:00 +0000)] 
some small bugfixes

17 years agoadded some checks for poverty and wedding, but only nines are handled correctly from...
arun [Fri, 12 Jan 2007 15:21:14 +0000 (15:21 +0000)] 
added some checks for poverty and wedding, but only nines are handled correctly from now on

17 years agoadded email to all players, in case someone cancled the game at the beginning
arun [Fri, 12 Jan 2007 14:49:15 +0000 (14:49 +0000)] 
added email to all players, in case someone cancled the game at the beginning

17 years agosmall bug in displaying the score
arun [Fri, 12 Jan 2007 10:49:29 +0000 (10:49 +0000)] 
small bug in displaying the score

17 years agoserver keeps score now, several small bugfixes
arun [Fri, 12 Jan 2007 08:43:28 +0000 (08:43 +0000)] 
server keeps score now, several small bugfixes

17 years agoadded list of finished games to user page
arun [Wed, 10 Jan 2007 12:51:43 +0000 (12:51 +0000)] 
added list of finished games to user page

17 years agoadded a message for work on the database
arun [Mon, 8 Jan 2007 09:44:22 +0000 (09:44 +0000)] 
added a message for work on the database

17 years agoFEATURE: added solo and now you also can only play cards that are valid on a trick
arun [Mon, 8 Jan 2007 09:16:20 +0000 (09:16 +0000)] 
FEATURE: added solo and now you also can only play cards that are valid on a trick