update readme
[rofl0r-oopoker.git] / rules.h
blob717efae7f44e9f0be5f731c52b5c188c57687861
2 /*
3 OOPoker
5 Copyright (c) 2010 Lode Vandevenne
6 All rights reserved.
8 This file is part of OOPoker.
10 OOPoker is free software: you can redistribute it and/or modify
11 it under the terms of the GNU General Public License as published by
12 the Free Software Foundation, either version 3 of the License, or
13 (at your option) any later version.
15 OOPoker is distributed in the hope that it will be useful,
16 but WITHOUT ANY WARRANTY; without even the implied warranty of
17 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18 GNU General Public License for more details.
20 You should have received a copy of the GNU General Public License
21 along with OOPoker. If not, see <http://www.gnu.org/licenses/>.
24 #pragma once
26 enum Round
28 R_PRE_FLOP,
29 R_FLOP,
30 R_TURN,
31 R_RIVER,
32 R_SHOWDOWN //not everything uses this (some things immediatly reset it to PRE_FLOP). This is reached when the river betting is settled and there are still multiple players in the game.
35 struct Rules
37 Rules();
39 int buyIn; //the starting stack
40 int smallBlind;
41 int bigBlind;
42 int ante;
45 allowRebuy:
47 If false, once someone is out, he can't play anymore. Winner is last remaining.
49 If true, someone can rebuy if out. Winner is the one with the biggest total amount
50 of money after N deals or when the host stops the game.
52 bool allowRebuy;
54 //only used if allowRebuy is true. Then the game ends after this many deals (if 0, it'll run forever or until the host decides to stop the game)
55 int fixedNumberOfDeals;