Skip to content

Instantly share code, notes, and snippets.

@mdp
Created November 18, 2013 00:45
Show Gist options
  • Save mdp/050cd82f651eb9f9b9c8 to your computer and use it in GitHub Desktop.
Save mdp/050cd82f651eb9f9b9c8 to your computer and use it in GitHub Desktop.
Randbot.js
{
"community": [
"Kh",
"9s",
"5c"
],
"state": "flop",
"hand": 2,
"betting": {
"call": 0,
"raise": 10,
"canRaise": true
},
"self": {
"name": "The Amazing RandBot",
"blind": 0,
"ante": 0,
"wagered": 100,
"state": "active",
"chips": 490,
"actions": {
"pre-flop": [
{
"type": "call",
"bet": 20
},
{
"type": "raise",
"bet": 40
},
{
"type": "raise",
"bet": 40
}
]
},
"cards": [
"Jd",
"4s"
],
"position": 4
},
"players": [
{
"name": "CallBot",
"blind": 5,
"ante": 0,
"wagered": 100,
"state": "active",
"chips": 2540,
"actions": {
"pre-flop": [
{
"type": "call",
"bet": 35
},
{
"type": "call",
"bet": 20
},
{
"type": "call",
"bet": 40
}
],
"flop": [
{
"type": "check"
}
]
}
},
{
"name": "CallBot #2",
"blind": 10,
"ante": 0,
"wagered": 100,
"state": "active",
"chips": 490,
"actions": {
"pre-flop": [
{
"type": "call",
"bet": 30
},
{
"type": "call",
"bet": 20
},
{
"type": "call",
"bet": 40
}
],
"flop": [
{
"type": "check"
}
]
}
},
{
"name": "RandBot #2",
"blind": 0,
"ante": 0,
"wagered": 100,
"state": "active",
"chips": 490,
"actions": {
"pre-flop": [
{
"type": "raise",
"bet": 20
},
{
"type": "call",
"bet": 20
},
{
"type": "raise",
"bet": 40
},
{
"type": "call",
"bet": 20
}
],
"flop": [
{
"type": "check"
}
]
}
},
{
"name": "FoldBot",
"blind": 0,
"ante": 0,
"wagered": 0,
"state": "folded",
"chips": 1000,
"actions": {
"pre-flop": [
{
"type": "fold"
}
]
}
},
{
"name": "The Amazing RandBot",
"blind": 0,
"ante": 0,
"wagered": 100,
"state": "active",
"chips": 490,
"actions": {
"pre-flop": [
{
"type": "call",
"bet": 20
},
{
"type": "raise",
"bet": 40
},
{
"type": "raise",
"bet": 40
}
]
}
},
{
"name": "RandBot",
"blind": 0,
"ante": 0,
"wagered": 100,
"state": "active",
"chips": 490,
"actions": {
"pre-flop": [
{
"type": "raise",
"bet": 40
},
{
"type": "call",
"bet": 20
},
{
"type": "call",
"bet": 40
}
]
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment