summaryrefslogtreecommitdiff
path: root/server/game.cpp
AgeCommit message (Collapse)AuthorFilesLines
2010-11-29Wait for Ready from client before starting a new round.Vegard Storheil Eriksen1-4/+6
2010-11-28End the round when the wall is depleted.Vegard Storheil Eriksen1-0/+7
2010-11-28Draw a replacement tile after kan.Vegard Storheil Eriksen1-0/+1
2010-11-28Handle Ron and Tsumo actions, start a new round after one is over.Vegard Storheil Eriksen1-13/+14
2010-11-28Separated Game::Player method definitions into new file.Vegard Storheil Eriksen1-330/+0
2010-11-28Added simple can_ron() and can_tsumo() tests. No kokushi/chitoi yet.Vegard Storheil Eriksen1-0/+67
2010-11-27List of nicks now in correct order for all players.Vegard Storheil Eriksen1-0/+9
2010-11-27Added kan-dora.Vegard Storheil Eriksen1-0/+7
2010-11-27Added dora.Vegard Storheil Eriksen1-2/+6
2010-11-27Handle chi/pon/kan actions.Vegard Storheil Eriksen1-4/+123
2010-11-27Chi only from left.Vegard Storheil Eriksen1-6/+8
2010-11-27Using CyclicInt for PlayerNum.Vegard Storheil Eriksen1-20/+21
2010-11-27Split target type and target offset in Action.Vegard Storheil Eriksen1-6/+6
2010-11-27Removed obsolete files.Vegard Storheil Eriksen1-3/+0
2010-11-27Changed format of RoundState again.Vegard Storheil Eriksen1-20/+21
2010-11-25Replace GameVariant/RuleSet::Standard with Game::Player.Vegard Storheil Eriksen1-78/+200
2010-11-25Added Game::Player.Vegard Storheil Eriksen1-0/+155
2010-11-25Rename Player to Client, to better reflect what it represents.Vegard Storheil Eriksen1-2/+2
A Player should be specific to a game, while a Client may participate in several.
2010-11-25Check for valid action.Vegard Storheil Eriksen1-5/+5
2010-11-22Moved lots of code in Game out into a separate class.Atle Hellvik Havsø1-388/+20
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22Fixed typo in chi-testsAtle Hellvik Havsø1-30/+16
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22Made server respond to Action::Chi messages.Atle Hellvik Havsø1-4/+51
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22Implemented pass on the server.Atle Hellvik Havsø1-10/+37
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22The "Chi" mechanism now works.Atle Hellvik Havsø1-19/+45
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22Added debug flag in scons-script for server. Wrote code to check if player ↵Ole Daniel Evensen1-5/+141
can chi.
2010-11-21Made the server send a empty RoundEnd message when the wall is empty ↵Atle Hellvik Havsø1-1/+35
(Contains only 14 tiles). Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-21Rewrote parts of round_update and handle_actionAtle Hellvik Havsø1-48/+79
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-21Server sends the players id in the game together with the GameStart message.Atle Hellvik Havsø1-28/+24
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Some changes to game.Atle Hellvik Havsø1-17/+41
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Minor change with State.Atle Hellvik Havsø1-7/+7
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Should now be possible to play a round where everyone discards.Atle Hellvik Havsø1-13/+18
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Server responds to discard messages.Atle Hellvik Havsø1-32/+99
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Wait for action from player 0 (East) at the start of a round.Atle Hellvik Havsø1-4/+33
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Added a wall to Game and started handing out tiles to the players in the ↵Atle Hellvik Havsø1-1/+20
start of a game. Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-19Outline of program flow in Game class.Vegard Storheil Eriksen1-0/+45
2010-11-15Implement server program flow around GameStart.Vegard Storheil Eriksen1-8/+33
2010-11-15Added Game-class and GameStart message.Vegard Storheil Eriksen1-2/+14
2010-11-08added player and game classesOle Daniel Evensen1-0/+4