Giter VIP home page Giter VIP logo

console-dicegame's Introduction

Console-DiceGame

Welcome to the Console Dice Game, a simple C# console application that simulates a dice game between two players. This game consists of six rounds, during which the players roll dice, and the system keeps track of the winner of each round, ultimately revealing the final score.

How to Play

  1. Run the program, and you'll be greeted with a welcome message.
  2. Follow the on-screen instructions to provide names for Player 1 and Player 2.
  3. The game will run for a total of 6 rounds.
  4. In each round, both players will roll dice, and the system will determine the winner based on the total of their dice rolls.
  5. The scoring is based on the difference between the rolls:
  • If the difference is 8 or more, the winner gets 3 points.
  • If the difference is between 5 and 7, the winner gets 2 points.
  • If the difference is less than 5, the winner gets 1 point.
  1. After each round, the system will display the results and ask if you want to continue to the next round.
  2. Once all rounds are completed, the system will display the final score and announce the overall winner.
  3. The game will end with a thank-you message.

How to Run

Compile and run the program using a C# development environment such as Visual Studio or Visual Studio Code. Follow the on-screen prompts to play the dice game.

Hope you enjoy

console-dicegame's People

Contributors

marciohmb avatar

Watchers

 avatar

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.