Giter VIP home page Giter VIP logo

mini-games's Introduction

Mini Games

GitHub license official JetBrains project

Welcome to Mini Games! There are 3 different games you can play: Dice Roll, Rock/Paper/Scissors, or Coin Flip. All of our projects have ASCII art to enhance your experience.

How to run our code?

Prerequisites:

Download the most recent release. Then open a console or terminal window. CD into the directory and run the following command:
java -jar DiceRoll.jar

Project Goals/Features:

DiceRoll - Dice Roll game where you roll a dice and dice faces are displayed
RockPaperScissors - Game where you play rock paper scissors against the computer
CoinFlip - A simple coin flip animation game
MainMenu - Main file that is running. It calls the other files.

AP Test Parallels:

  • Arrays
  • Objects
  • If/Else Statements
  • Classes
  • Primitive Data Types (Strings)
  • 2D Arrays
  • Array Lists
  • Iteration
  • Recursion

Unit -> Mini Game usage

Unit Mini Game Usage Example
Primative Types 15% Mini Games uses integer, boolean types, and strings MainMenu.java uses boolean types in while loop and switch cases use integer types
Using Objects 15% Mini Games is using multiple Objects and String (non-primitive data type) We call objects of the different mini-game classes in MainMenu.java
Boolean Expression and Control statement 30% Mini Games uses if and switch/case We use control expressions like "if" and "switch/case" to control how the code runs. We also use boolean expressions to make sure that the code runs until the user says no.
Writing Classes 10% Mini Games defines RockPaperScissors, DiceRoll, CoinFlip, and MainMenu We have different classes for each mini-game so that our code is modular and easier to edit
Arrays 10% Mini Games uses arrays in multiple places We use arrays in DiceRoll.java and in RockPaperScissors.java to get a random case.
2D Arrays 5% Mini games uses 2D arrays the coin flip animation We use arrays in CoinFlip.java for holding the strings that contain the ASCII art for the dice.
Array Lists 5% Mini games uses array lists to store the number of rolls you do We use array lists in DiceRoll.java to store the number of dice rolls that you have so that they can all be printed out at the end.
Iteration 5% Mini games uses iteration for our main loops and our main files We use iteration in MainMenu.java, RockPaperScissors, DiceRoll.java, and CoinFlip.java to go through all of our posibilities through if/else, while, and switch/case loops.
Recursion 5% Mini games uses recusion to print out all the possibilies for numbers you can roll We use recursion in DiceRoll.java through the countdown function and going through all of the possibilities of numbers you can roll out in DiceRoll.java

Project Credits

Contributor GitHub Link
Gautam Gupta @batman084
Tanay Shah @Altoid0
Dhruv Kanetkar @DhruvK0
Dhruv Sengupta @DaHippoBear

mini-games's People

Contributors

altoid0 avatar batman084 avatar dahippobear avatar dhruvk0 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.