Giter Site home page Giter Site logo

code-test-javascript's Introduction

devBuddies Code Test for JavaScript Ninjas

Your motivation

Dear dev buddy, it's important to us to explain why we ask you to do this code test:

  • You help us and yourself to assess your level of coding skills and find the right position for you
  • We can pass it along in your introduction, which drastically increases your chances to be invited for an interview. The dev teams can review your code and get a first real impression
  • Your own your code! You can use it to pimp you github profile and to send it along for any companies you approach yourself
  • Last, we hope it will be fun!

Task

Bowling Challenge

  • Please clone this repository in GitHub (or similar) and invite us, so that we can follow your progress.
  • The implementation should use "vanilla" JavaScript (no libraries or frameworks). But if you feel strongly to use react.js - go for it ;)
  • Remember that we are more interested how you approach this problem than completing all the features (if you don't have enough time explain how you would progress).

Minimum (keep in mind the optional requirements):

  • Implement a scoring system for a bowling game according to these rules:
  • A game consists of 10 frames.
  • In general each frame has 2 rolls.
  • In general a player scores the number of pins knocked down.
  • If the player knocks down all 10 pins on the first roll it’s a strike. The player scores 10 plus the number of pins knocked down in the next two rolls.
  • If the player knocks down all 10 pins in two rolls it’s a spare. The player scores 10 plus the number of pins knocked down in the next roll.
  • Simple visualisation of the game.

Optional:

  • Add support for the last frame in the game:
  • The player gets additional rolls in the last frame: one additional for a spare after the second roll or two extra rolls for a strike.
  • Create a method that randomly throws a roll (one roll is 1-10 pins knocked down), and progresses the scoring.
  • Support multiple players.
  • Or anything fun you can think of :)

Good luck & Fun

Your devbuddies team :)

code-test-javascript's People

Contributors

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