Project is to create the Card game Phase 10 for multiplayer:
When players click on the game’s link, a “Lobby” opens, and there are game rooms available, saying how many players are already in the game. There is a maximum of 8 players per game room.
If there are for example 7 players in a game, a player can still join this game, when he joins, the card game opens in a new window and no one can join the game that is now full(8 players). Though players can join a “waiting list”, so when a player loses or leaves, the first in the waiting list will be able to play and the card game will open.
Players are able to open new rooms in the lobby.
When a person starts a game, they can’t play a phase until there is at least two people.. If the second person leaves, and its just one left – the game is froze until another joins.. When a person joins, he takes over a prevous persons spot.. If there are no previous persons, and he is completely new, then he starts at the lowest phase of all uers (So if there is 5 users, and 3 are at phase 4 and 2 are at phase 2 then the new person would start at phase 2.). His points will be added by however many people there are at that lowest phase points average (For example: there are two people at phase 2.. One has 290 points, the other has 320 points. You would take the average of those two scores, and that would be the new users total points.. Of course there can be more than 2 users at that phase, there can be up to 8 at that one phase.. And if there is only 1 at that phase, then that new person starts off with the same amount of points as that person.). It is done like this so that each new joiner to a game is played fair, and they aren’t all the way in the dust.
Some information will need to be outputted from flash to MySQL database, using PHP.
Game_Id, Winner_Id, Winner_Points, Loser_Ids
Game id is the ID of the game, the first game played on the server is 1… and the 1000th game’s ID is … 1000!
Winner ID is the winner of the game.
Winner points, how many points that user had.
Loser_Ids are the ID’s of the players who lost on the table.
The ID’s are already in my server, which are the registered members…
Thanks