source: pages/api/poker/gameStates.js@ 189cd8f

main
Last change on this file since 189cd8f was 189cd8f, checked in by anastasovv <simon@…>, 2 years ago

Code cleanings

  • Property mode set to 100644
File size: 1.1 KB
Line 
1export let tables = []
2
3export const singleDeck = ["SA", "S2", "S3", "S4", "S5", "S6", "S7", "S8", "S9", "SX", "SJ", "SQ", "SK",
4 "HA", "H2", "H3", "H4", "H5", "H6", "H7", "H8", "H9", "HX", "HJ", "HQ", "HK",
5 "CA", "C2", "C3", "C4", "C5", "C6", "C7", "C8", "C9", "CX", "CJ", "CQ", "CK",
6 "DA", "D2", "D3", "D4", "D5", "D6", "D7", "D8", "D9", "DX", "DJ", "DQ", "DK" ];
7
8export const deck = [...singleDeck];
9
10export const sampleTable = {
11 id: '',
12 name: '',
13 status: '_1_just_created',
14 creator: '',
15 started: false,
16 ended: false,
17 round: 0,
18 turnIdx: -1,
19 pot: 0,
20 lastBet: 20,
21 turnsSinceLastBet: 0,
22 deck: [...deck],
23 players: [],
24 winners: [],
25 splitWinners: false,
26 cards: [],
27}
28
29export const samplePlayer = {
30 id: '',
31 table: '',
32 credits: 0,
33 status: '_1_just_entered',
34 displayName: '',
35 cards: [],
36 betAmount: 0,
37 wonAmount: 0,
38 isSatDown: false,
39 isCoordinator: false,
40 isFolded: false,
41 isGhost: false,
42 hand: {
43 hand: '',
44 highCard: 0,
45 },
46}
Note: See TracBrowser for help on using the repository browser.