Code Monkey home page Code Monkey logo

dicewar's Introduction

Dice Wars

This project was made durring my edjucation in Careerdevs. Here we were putting into practice our newly developed skills in creating fully functioning CLI based applications with scanners detecting user input and a simple but functioning menu.

Installation

Install Dice Wars by cloning the repo with Gitbash

git clone https://github.com/TBlais10/DiceWar.git

Usage/Examples

The types of dice games to be played through the menu:

. . . . . . 
Ok! Which dice war would you like to play?
1) Standard Dice War
2) Dungeons and Dragons Dice War
. . . . . . 

After filling in the short forum, this final message will appear before starting the game:

Ok, lets review!
Number of players: 2
Number of NPC players: 0
Number of Rounds: 4
Type of dice your rolling: D6
The amount of D6: 3
Is this all correct?
 Y to start the game or N to return to restart the form.

The game will start:

. . . . . . 
Welcome to Dice War! The rules are simple, roll the highest number of dice to win the game! This game will last for 4rounds. May you roll well!
. . . . . . 

. . . . . . 
Round 1!...Out of 4
. . . . . . 

It's Player 1's turn! Press Enter to roll!!!
Input: 

Once the game is played, a winner will be displayed and give an option to return to the main menu and start a new game:

. . . . . . 
And our winner for this Dice war is...Player 2 with 34 points! Congratulations!!!
. . . . . . 

Would you like to start a new Dice War?!!! Y/N?
Input: 

Contributing

Open to adding to this application. Pull requests are welcome! If you wish to make any major changes to the application or add any substantial features, create a request and we can discuss the code.

dicewar's People

Contributors

tblais10 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.