grpc-simon-says

module
v0.0.0-...-ce3f598 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2016 License: Apache-2.0

README

Multiplayer Simon Says - A Game using gRPC and Kubernetes.

Simon Says Game

This is an example project using gRPC and Kubernetes to build a multiplayer version of the game "Simon Says".

It has been implemented in multiple languages to highlight the variety of supported languages that gRPC gives you out of the box.

Folder Structure

gRPC Communication

The following animation shows the way in which gRPC sends message over it's bidirectional streaming connection, to enable gameplay.

Here we can see:

  • Two players on different devices joining the game,
  • Being notified it is their turn
  • Communicating a button press on their clients
  • Being told to light up given colors
  • When the game has ended, because a sequence is incorrect
  • Who has won the game in the end

gRPC Communication

Presentation Recordings

Uniquity, 2015
Ubiquity Dev Summit, 2016

Contributing changes

Licensing

This is not an official Google Product.

Directories

Path Synopsis
server
go/src/github.com/grpc-simonsays/simonsays-server/cmd/server
Server binary that actually runs the gRPC server
Server binary that actually runs the gRPC server
go/src/github.com/grpc-simonsays/simonsays-server/simonsays
Package simonsays is a generated protocol buffer package.
Package simonsays is a generated protocol buffer package.
go/src/github.com/grpc-simonsays/simonsays-server/simonsays/logger
Package logger is logging that is specific to this application Need to track the game, and the player, so we can see everything that is going on.
Package logger is logging that is specific to this application Need to track the game, and the player, so we can see everything that is going on.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL