summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2010-12-01Move hand calculations to a new file.Vegard Storheil Eriksen3-51/+103
2010-12-01List::operator bool() should be const.Vegard Storheil Eriksen1-1/+1
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-30Add LobbyStatus and LobbyAction messages.Vegard Storheil Eriksen2-0/+50
2010-11-30Simplified Message API. All messages are now serialized by Boost.Serialize.Vegard Storheil Eriksen3-256/+189
2010-11-30Changed from text to binary archive.Vegard Storheil Eriksen1-4/+4
2010-11-30Change Message::BoostBase API.Vegard Storheil Eriksen2-53/+37
2010-11-29Wait for Ready from client before starting a new round.Vegard Storheil Eriksen3-6/+13
2010-11-28Command line arguments takes precedence over values from the configuration file.Atle Hellvik Havsø1-2/+5
Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
2010-11-28Added a Config class. Example usage:Atle Hellvik Havsø2-0/+129
Config hei; hei.add_element("nick", n); hei.add_element("server", s); hei.add_element("port", p); hei.get_element("nick"); hei.get_element("server"); hei.get_element("port"); Signed-off-by: Atle Hellvik Havsø <atle@havso.net>
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-27Whoops, missed one. Also, we don't need to construct a rotated tile.Vegard Storheil Eriksen2-4/+4
2010-11-27Force all fields of Tile to be initialized.Vegard Storheil Eriksen2-8/+1
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 Eriksen2-2/+2
2010-11-27Added List::del().Vegard Storheil Eriksen1-0/+5
2010-11-27Chi only from left.Vegard Storheil Eriksen2-7/+9
2010-11-27Using CyclicInt for PlayerNum.Vegard Storheil Eriksen2-21/+25
2010-11-27Added CyclicInt convenience class.Vegard Storheil Eriksen1-0/+80
2010-11-27Fixed minor regression in server.Vegard Storheil Eriksen1-3/+3
2010-11-27Split target type and target offset in Action.Vegard Storheil Eriksen3-12/+21
2010-11-27Removed obsolete files.Vegard Storheil Eriksen7-628/+0
2010-11-27Changed format of RoundState again.Vegard Storheil Eriksen6-46/+58
2010-11-27Added List class to avoid reinventing features in each case.Vegard Storheil Eriksen5-40/+41
2010-11-25Changed contents of Message::RoundState. Made relevant changes to client.Vegard Storheil Eriksen2-6/+23
2010-11-25Added dora-field to RoundState.Vegard Storheil Eriksen2-0/+4
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-25Add invisible-flag to Tile.Vegard Storheil Eriksen1-0/+2
2010-11-25Add get_set() to Tile.Vegard Storheil Eriksen2-1/+46
2010-11-25Add Action() taking type and target and Actions::operator bool().Vegard Storheil Eriksen2-0/+18
2010-11-25Added Tiles::sort().Vegard Storheil Eriksen2-6/+30
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-25Added get_num(), operator==() and operator++() to Tile.Vegard Storheil Eriksen2-0/+26
2010-11-25Action::operator==() should take a reference.Vegard Storheil Eriksen2-2/+2
2010-11-25Remove Action::player and turn Action::target into an int.Vegard Storheil Eriksen2-78/+74