summaryrefslogtreecommitdiff
path: root/server/game.cpp
AgeCommit message (Collapse)AuthorFilesLines
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