2-10, j, q, k , a
b = back of card
{
"type": "connect",
"username": "username"
}
{
"type": "draw"
}
{
"type": "move",
"card": 3,
"to": 0
}
For "card:"
index of card in hand
For "to:"
0 = left pile
1 = right pile
{
"type": "card",
"card": "3"
}
{
"type": "chat",
"message": "message"
}
{
"type": "game",
"message": "Congratulations, you won!"
}
{
"type": "invalid",
"message": "message"
}
{
"type": "playerCards",
"cards": [
{"card": "b"},
{"card": "3"},
{"card": "q"},
{"card": "b"}
]
}
{
"type": "start",
"player": "name"
}