Skip to content

mattkibbler/go-pass-the-parcel

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

go-pass-the-parcel

A little program written to help get my head around goroutines, channels and context in Go.

Simulates a game of "pass the parcel" where each player passes a "parcel" around until the music, i,e. a timer, stops and the player holding the parcel wins.

Each player is a goroutine, channels are used to pass the parcel and a context with a timeout is used to end the game.

Usage

Nothing complicated here. Simply call go run main.go to kick things off and relive your childhood disappointment.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages