summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-11-23Minor change in RuleSet::StandardAtle Hellvik Havsø1-5/+3
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-23Added a second target to Action.Atle Hellvik Havsø2-16/+17
2010-11-22Moved lots of code in Game out into a separate class.Atle Hellvik Havsø5-405/+499
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 Evensen2-6/+142
can chi.
2010-11-22Minor fix to SetAtle Hellvik Havsø1-1/+1
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-22Added a Set class.Atle Hellvik Havsø3-0/+28
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-21Made the server send a empty RoundEnd message when the wall is empty ↵Atle Hellvik Havsø3-2/+51
(Contains only 14 tiles). Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-21Added a empty RoundEnd Message.Atle Hellvik Havsø3-0/+14
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ø4-28/+28
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Fixed backslash in include.Atle Hellvik Havsø1-1/+1
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ø7-14/+15
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ø2-36/+108
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Made the Player class have a ID (That gets set during a game) which they add ↵Atle Hellvik Havsø3-0/+8
to the Action-message. So we can keep track of which player did what action. 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ø2-4/+40
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ø2-1/+27
start of a game. Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-20Created a Wall-class.Atle Hellvik Havsø2-0/+100
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-19Outline of program flow in Game class.Vegard Storheil Eriksen2-0/+52
2010-11-19Add game state and action functions to Player class.Vegard Storheil Eriksen2-1/+41
2010-11-19Add RoundStart, RoundState and RoundAction messages.Vegard Storheil Eriksen3-0/+83
2010-11-19Add Action and State classes.Vegard Storheil Eriksen2-0/+78
2010-11-19Remove useless Tile(uint16_t) constructor.Vegard Storheil Eriksen2-7/+7
2010-11-19Move Tiles typedef.Vegard Storheil Eriksen1-0/+3
2010-11-16Some commenting for debug. Changed tile-class. Created basic drawHand in table.Ole Daniel Evensen2-10/+6
2010-11-15Changed Tile API.Vegard Storheil Eriksen2-11/+14
2010-11-15Implement server program flow around GameStart.Vegard Storheil Eriksen8-19/+86
2010-11-15Added Message::NullBase and Message::BoostBase. Edited Message::GameStart to ↵Vegard Storheil Eriksen3-23/+84
contain list of players.
2010-11-15Merge branch 'master' of ssh://git.jvnv.net/srv/git/aotenjouOle Daniel Evensen2-0/+22
2010-11-15Added Message::Ready.Vegard Storheil Eriksen2-0/+22
2010-11-15Remove callback upon error to break circle of smart pointers.Vegard Storheil Eriksen1-0/+1
2010-11-15Added Game-class and GameStart message.Vegard Storheil Eriksen9-13/+69
2010-11-15Added Player class.Vegard Storheil Eriksen4-47/+76
2010-11-15Minor cleanup.Vegard Storheil Eriksen2-4/+0
2010-11-15Added Lobby class to server, serving as the master application class.Vegard Storheil Eriksen5-20/+90
2010-11-15Connection API changes.Vegard Storheil Eriksen4-17/+23
2010-11-15Fix bug in Message::LoginResponse::serialize().Vegard Storheil Eriksen1-1/+1
2010-11-15Moved recv_queue from ConnectionBase to client Connection.Vegard Storheil Eriksen2-17/+5
2010-11-15Changed Message-API. Implemented Hello, Login, LoginResponse.Vegard Storheil Eriksen6-129/+191
2010-11-08Started on payload classes.Vegard Storheil Eriksen4-24/+104
2010-11-08Added protocol flow chart.Vegard Storheil Eriksen1-0/+48
2010-11-08Added docstring on TCPServer::handle_connection().Ole Daniel Evensen1-1/+3
2010-11-08Merge branch 'master' of ssh://git.jvnv.net/srv/git/aotenjouAtle Hellvik Havsø2-11/+15
2010-11-08Added smartpointer to connection in player, rather than storing ip and port.Ole Daniel Evensen2-11/+15
2010-11-08Modified SConstruct files for windows targetsAtle Hellvik Havsø1-2/+7
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>