Thanks to visit codestin.com
Credit goes to github.com

Skip to content

vitaliiboiko360/wuna

Repository files navigation

Wuna

Web UNO game based on websocket and svg

DEMO

To run locally:
./generateLocalDevOnlyCertificates.sh to generate certs files ./key.pem and ./cert.pem
./startGameServer.sh to start server
npm run build & npm run watch to start client

protocol
CLI -> SRV
message is Uint8Array where
| byte position | value |
| 0 | seat number { 0, 1, 2, 3} of the player |
| 1 | 0 if player skip move |
| | cardId number when player moves card on top |

SRV -> CLI
message is Uint8Array where
| byte pos | value |
| 0 | 0 if init game state is send to CLI |
| 1 | cardId top card to play on table |
| | number of cards for player's hand, where: |
| 2 | seat == 0 |
| 3 | seat == 1 |
| 4 | seat == 2 |
| 5 | seat == 4 |

About

Web UNO game based on websocket and svg

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published