Go Demo Rock-Paper-Scissors with libp2p
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
game
p2p
resources
.gitignore
Gopkg.lock
Gopkg.toml
LICENSE
README.md
player.go

README.md

rock-paper-scissors-demo

Go Demo Rock-Paper-Scissors with libp2p

This is the code for a quick introduction on how to use libp2p at the Go developers meetup in Berlin. Slides can be found here: https://docs.google.com/presentation/d/1q6oE7xa1EyrlG5WimlvTnOKoCOHE3071L3QsvHzldjs

Install Dep

curl https://raw.githubusercontent.com/golang/dep/master/install.sh | sh

Install Dependencies

dep ensure

Build

go build -o player player.go

Run - 3 different terminals

Run DHT Bootstrap Node

./player -p 30000 -prefix dht -bootstrap

Run Player 1 Node

./player -p 30001 -prefix enc_1

Run Player 2 Node

./player -p 30002 -prefix enc_2