Giter Site home page Giter Site logo

rock-paper-scissors's Introduction

Rock Paper Scissors

A client requests that you build a rock, paper, scissors console application game in C#.

License .NET Core

Requirements

  • The game must be playable by either two human players or against a computer player.
  • The console application should clearly display the game’s progression and be easy to use.
  • Focus on code quality.

Rules

  • The first player to win 3 rounds wins.
  • During each round, players select one of the three following options:
    • Rock, which beats Scissors
    • Paper, which beats Rock
    • Scissors, which beats Paper
  • When the same option is selected by both players, the round is restarted.

Computer player behavior

  • The computer player chooses the option that would have beat its previous selection.
    • Ex: In round 1, the computer chooses Rock, then in round 2 it selects Paper.

Design

Your design should make it easy to implement these upcoming requirements.

Additional features

  • Adding new options. For example, I want to add a Flamethrower option that beats Paper and loses to Rock and Scissors.
  • We want to add a new computer player type which always selects a random option.

Author

Lucas Rosinelli

rock-paper-scissors's People

Contributors

lucasrosinelli avatar

Watchers

James Cloos avatar  avatar

rock-paper-scissors's Issues

Rock, paper, scissors

Description

A client requests that you build a rock, paper, scissors console application game in C#.

Requirements

  • The game must be playable by either two human players or against a computer player.
  • The console application should clearly display the game’s progression and be easy to use.
  • Focus on code quality.

Rules

  • The first player to win 3 rounds wins.
  • During each round, players select one of the three following options:
    • Rock, which beats Scissors
    • Paper, which beats Rock
    • Scissors, which beats Paper
  • When the same option is selected by both players, the round is restarted.

Computer player behavior

  • The computer player chooses the option that would have beat its previous selection.
    • Ex: In round 1, the computer chooses Pock, then in round 2 it selects Paper.

Design

Your design should make it easy to implement these upcoming requirements.

Add unit tests

Create unit tests in order to assure the application is working properly.

Add new option

Adding new options. For example, I want to add a Flamethrower option that beats Paper and loses to Rock and Scissors.

Add new player type

We want to add a new computer player type which always selects a random option.

Add CI pipeline

Add CI pipeline to automatically build and test the application.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.