summaryrefslogtreecommitdiff
path: root/server
AgeCommit message (Collapse)AuthorFilesLines
2010-12-05Use Set to store open sets on server. Send actions to extend open kans.Vegard Storheil Eriksen3-10/+32
2010-12-05Test for concealed and extended kans.Vegard Storheil Eriksen2-5/+42
2010-12-05Renamed target types.Vegard Storheil Eriksen1-6/+6
2010-12-04Added riichi handler.Vegard Storheil Eriksen3-19/+33
2010-12-04Fill all fields in GameState and PlayerState.Vegard Storheil Eriksen3-15/+29
2010-12-03Use PlayerState and GameState in Message::RoundState.Vegard Storheil Eriksen5-20/+31
2010-12-03Don't add 1p-player to 4p-queue.Vegard Storheil Eriksen1-1/+1
2010-12-03Fixed error_code in Connection::handle_read().Vegard Storheil Eriksen2-4/+4
2010-12-02Changed Hand::eat_-functions to return a bool, so a failure can be ↵Vegard Storheil Eriksen2-52/+54
distinguished from a depleted list of tiles.
2010-12-02Sort hands before testing agari/tenpai.Vegard Storheil Eriksen1-1/+5
2010-12-02Send current_player with RoundState.Vegard Storheil Eriksen3-8/+8
2010-12-02Added tenpai test to allow calling riichi.Vegard Storheil Eriksen4-2/+133
2010-12-01Move hand calculations to a new file.Vegard Storheil Eriksen3-51/+103
2010-12-01Minor bug in Game::round_end() - don't call round_start() before all clients ↵Vegard Storheil Eriksen1-1/+0
have responded.
2010-12-01Added game mode selection, with 1p and 4p testing modes.Vegard Storheil Eriksen2-8/+30
2010-12-01Made Game and Game::Player take ChildBase::p instead of Child::p.Vegard Storheil Eriksen2-5/+5
2010-12-01Made «dumb» ClientDumb.Vegard Storheil Eriksen2-0/+39
2010-12-01Made Client a child of abstract ClientBase.Vegard Storheil Eriksen1-9/+37
2010-12-01Added lobby support to Client.Vegard Storheil Eriksen2-4/+30
2010-11-29Wait for Ready from client before starting a new round.Vegard Storheil Eriksen3-6/+13
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 Eriksen2-330/+331
2010-11-28Added simple can_ron() and can_tsumo() tests. No kokushi/chitoi yet.Vegard Storheil Eriksen2-1/+74
2010-11-27List of nicks now in correct order for all players.Vegard Storheil Eriksen1-0/+9
2010-11-27Added kan-dora.Vegard Storheil Eriksen2-0/+9
2010-11-27Added dora.Vegard Storheil Eriksen2-4/+10
2010-11-27Handle chi/pon/kan actions.Vegard Storheil Eriksen2-4/+130
2010-11-27Use tilegroups for exposed tiles instead of just a list of tiles.Vegard Storheil Eriksen1-1/+1
2010-11-27Chi only from left.Vegard Storheil Eriksen2-7/+9
2010-11-27Using CyclicInt for PlayerNum.Vegard Storheil Eriksen2-21/+25
2010-11-27Split target type and target offset in Action.Vegard Storheil Eriksen1-6/+6
2010-11-27Removed obsolete files.Vegard Storheil Eriksen4-560/+0
2010-11-27Changed format of RoundState again.Vegard Storheil Eriksen4-27/+30
2010-11-25Replace GameVariant/RuleSet::Standard with Game::Player.Vegard Storheil Eriksen2-85/+224
2010-11-25Added Game::Player.Vegard Storheil Eriksen2-0/+208
2010-11-25Client::game_start() now take list of nicks, not list of clients. Minor cleanup.Vegard Storheil Eriksen2-17/+7
2010-11-25Rename Player to Client, to better reflect what it represents.Vegard Storheil Eriksen8-48/+47
A Player should be specific to a game, while a Client may participate in several.
2010-11-25Changed parts of the Wall API to make it reusable. Simplified the building.Vegard Storheil Eriksen2-56/+26
2010-11-25Remove Action::player and turn Action::target into an int.Vegard Storheil Eriksen1-72/+69
2010-11-25Check for valid action.Vegard Storheil Eriksen3-12/+14
2010-11-24Moved player-callbacks from class members to bound variables.Vegard Storheil Eriksen2-26/+18
2010-11-24Clear recv_callback even when no error_callback is specified.Vegard Storheil Eriksen1-0/+2
2010-11-24Added error handling around connections.Vegard Storheil Eriksen2-7/+28
2010-11-24Fixed play continues to the right on pon/kan.Ole Daniel Evensen1-12/+4
2010-11-24Added server-handling for pon/kan-actions.Ole Daniel Evensen1-1/+53
2010-11-24Removed some commented code.Ole Daniel Evensen1-8/+0
2010-11-24Wrote server-check for pon/kan possible actions.Ole Daniel Evensen3-4/+50
2010-11-24Player discards after chi.Ole Daniel Evensen1-0/+10