Code Monkey home page Code Monkey logo

bowling-challenge's Introduction

Ten Pin Bowling - Online!

A Bowling scorecard written in JavaScript, CSS and HTML.

Learning the rules

The bowling rules are a bit of a brain teaser at first. It was fun putting together the logic in JS to do the calculations.

I used TDD via Jasmine. I started by writing tests for a gutter game, game of ones and finally a perfect game. Although there were edge cases, I found once the perfect game was conquered the rest rolled into place.

How to play

To play, just clone this repository and open public/index.html. If you do go on to achieve a perfect game, a partying bowler will be displayed.

If you would like to play again (likely), no need to refresh. Just press the bowling ball and the game will restart.

In action

alt test

To be added

I would like to remove the option of knocking down more pins than what exist. For example, if the player get seven on the first throw of a frame, only one to three would be available on the next go.

I used bootstrap for the layout of the page. There are areas in the styling I would like to improve: scorecard and the white space at the bottom of the page would be the first to be updated.

bowling-challenge's People

Contributors

ckettell avatar tansaku avatar gypsydave5 avatar spike01 avatar ptolemybarnes avatar neoeno avatar roidriscoll avatar maryrosecook avatar anitacanita avatar

Watchers

James Cloos 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.