Skip to content

jacobpitkin78/speed

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

39 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Speed Json Messages

Cards:

Normal

2-10, j, q, k , a

Extra

b = back of card

Client:

Connect

{
	"type": "connect",
	"username": "username"
}

Draw:

{
	"type": "draw"
}

Move

{
	"type": "move",
	"card": 3,
	"to": 0
}

For "card:"

index of card in hand

For "to:"

0 = left pile
1 = right pile

Server:

Card

{
	"type": "card",
	"card": "3"
}

Chat

{
	"type": "chat",
	"message": "message"
}

Game

{
	"type": "game",
	"message": "Congratulations, you won!"
}

Invalid

{
	"type": "invalid",
	"message": "message"
}

MiddleCards, OpponentCards, PlayerCards

{
	"type": "playerCards",
	"cards": [
		{"card": "b"},
		{"card": "3"},
		{"card": "q"},
		{"card": "b"}
	]
}

Start

{
	"type": "start",
	"player": "name"
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published