/grpc_texas_holdem

golang grpc poker service

Primary LanguageGoApache License 2.0Apache-2.0

Texas Hold'em GRPC Server

  • A GRPC server to support a stateful multiplayer texas holdem poker game.

Build protos:

protoc -I poker/ poker/protobufs/poker.proto --go_out=plugins=grpc:poker

Test:

go test poker/server/server_test.go

Get test coverage:

From within server/ package:

go test -coverprofile=coverage.out 
go tool cover -func=coverage.out
go tool cover -html=coverage.out
rm coverage.out

Run Commands

run server/client

go run poker/run_server/main.go
go run poker/run_client/main.go