Skip to content

kumadee/blackjack

Repository files navigation

Gitpod ready-to-code Coverage Status GitHub Workflow Status Quality Gate Status

blackjack

Console based blackjack game.

To run the CPU and memory profiling, run the tests with the cpuprofile and memprofile flags.

# Assuming we are already in the directory with go.mod
go test -benchmem -run=^$ blackjack -bench "^(BenchmarkStartGame)$" -benchmem -cpuprofile cpu.out -memprofile mem.out

To view the profile data in browser, run the below command.

go tool pprof -http=:8080 cpu.out
go tool pprof -http=:8080 mem.out

gitpod known issues

  • Run gp env PIP_USER=false so that pre-commit does not fail with error Can not perform a '--user' install. Related to gitpod-io/gitpod#1997

About

Console based blackjack game. Also known as 21.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published