Skip to content

examples CompletedGameObject

Mark Percival edited this page Oct 30, 2012 · 1 revision
{ community: [ '7d', 'Kc', '6s', 'Jd', '4c' ],
  state: 'complete',
  hand: 1,
  betting: null,
  winners: [ { position: 0, amount: 90 } ],
  me: 
   { name: 'Me',
     blind: 5,
     ante: 0,
     wagered: 0,
     state: 'active',
     chips: 1060,
     actions: 
      { 'pre-flop': [ { type: 'call', bet: 5 } ],
        flop: [ { type: 'check' } ],
        turn: [ { type: 'check' }, { type: 'call', bet: 20 } ],
        river: [ { type: 'check' } ] },
     payout: 60,
     cards: [ 'Qs', 'Kh' ],
     handName: 'One pair',
     hand: [ 'Kc', 'Kh', 'Qs', 'Jd', '7d' ],
     position: 0,
     brain: {} },
  players: 
   [ { name: 'Me',
       blind: 5,
       ante: 0,
       wagered: 0,
       state: 'active',
       chips: 1060,
       actions: 
        { 'pre-flop': [ { type: 'call', bet: 5 } ],
          flop: [ { type: 'check' } ],
          turn: [ { type: 'check' }, { type: 'call', bet: 20 } ],
          river: [ { type: 'check' } ] },
       payout: 60,
       cards: [ 'Qs', 'Kh' ],
       handName: 'One pair',
       hand: [ 'Kc', 'Kh', 'Qs', 'Jd', '7d' ] },
     { name: 'CallBot #1',
       blind: 10,
       ante: 0,
       wagered: 0,
       state: 'active',
       chips: 970,
       actions: 
        { 'pre-flop': [ { type: 'check' } ],
          flop: [ { type: 'check' } ],
          turn: [ { type: 'check' }, { type: 'call', bet: 20 } ],
          river: [ { type: 'check' } ] },
       payout: -30,
       cards: [ '5h', 'Ah' ],
       handName: 'High card',
       hand: [ 'Ah', 'Kc', 'Jd', '7d', '6s' ] },
     { name: 'RandBot #1',
       blind: 0,
       ante: 0,
       wagered: 0,       state: 'active',
       chips: 970,
       actions: 
        { 'pre-flop': [ { type: 'call', bet: 10 } ],
          flop: [ { type: 'check' } ],
          turn: [ { type: 'raise', bet: 20 } ],
          river: [ { type: 'check' } ] },
       payout: -30,
       cards: [ 'Qd', '7c' ],
       handName: 'One pair',
       hand: [ '7d', '7c', 'Kc', 'Qd', 'Jd' ] } ] }
Clone this wiki locally