Giter Site home page Giter Site logo

africanbowlinggame-cli's Introduction

African bowling game on the command line for Code Scale Test Technique

This project consists of a Java implementation of an African game on the command line. The rules of this game are similar to those of bowling, but with a few specific nuances.

Game Rules

  • Players throw a piece of wood at 15 pins and try to knock down as many as possible.
  • The game consists of 5 frames for each player.
  • Each frame consists of 3 throws.
  • After each frame, the pins are straightened.
  • If all the pins are knocked down with the first throw of a frame, it's a strike.
  • If all the pins are knocked down after the 2nd or 3rd throw, it's a spare.
  • A spare counts 15 plus the pins of the next 2 throws, i.e. a maximum of 45 if the next two throws are strikes.
  • A strike counts 15 plus the pins of the next 3 deliveries, i.e. a maximum of 60 if the next 2 deliveries are strikes.
  • In the event of a strike or a spare in the last frame, the player may make additional throws to calculate the points for the last frame.
  • The maximum perfect score is 300.

Getting Started

  • Clone this repository
  • Open this project on of your code editor
  • launch App.java

How to play

If game launch, certain value is changed :

  • Strike is 15 : [15, 0, 0]
  • Spare is remaining quilles all done, eg: [8, 7, 0]

africanbowlinggame-cli's People

Contributors

daris02 avatar

Watchers

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