Skip to content

It is a game for two players. Each player simultaneously opens his/her hand to display a symbol: - Fist equals rock - Open hand equals paper - Showing the index and middle finger equals scissors. The winner is determined by the following schema:- Paper beats rock - Rock beats scissors - Scissors beat paper.

License

Notifications You must be signed in to change notification settings

ksaritek/paper-rock-scissors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Rock, Paper, Scissors is a classic hand game played between two people. Each player simultaneously forms one of three shapes with an outstretched hand: rock (a closed fist), paper (an open hand), or scissors (a fist with the index and middle fingers extended). The outcome of the game is determined by the rules: rock beats scissors, scissors beats paper, and paper beats rock. It's a simple yet entertaining game that can be played anytime, anywhere.

This project is a simple implementation of the Rock, Paper, Scissors game using gRPC. The game is played against the computer, and the player can choose one of the three shapes. The computer also selects a shape, and the winner is determined based on the rules.

bullet points

  • gRPC server and client application
  • otel for observability
  • buf for proto management
  • loose coupling
  • high cohesion
  • inbounds and outbounds
  • error handling
  • error logging at controller level
  • unit tests
  • makefile for easy commands

How to Play

Frist, you need to start the server

$ make grpc-server-run

Then, you can play the game by running the client

$ make grpc-client-run

Screenshots

Server

grpc-server-run

Client

grpc-client-run

About

It is a game for two players. Each player simultaneously opens his/her hand to display a symbol: - Fist equals rock - Open hand equals paper - Showing the index and middle finger equals scissors. The winner is determined by the following schema:- Paper beats rock - Rock beats scissors - Scissors beat paper.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published