Code Monkey home page Code Monkey logo

bowling's Introduction

TEN PIN BOWLING

This project was written with Scala and SBT (Simple Build Tool).

It uses the new Command Line Application support in SBT to manage and validate user input as documented here.

This feature requires you to be running at least version 0.12 of SBT. You can find instructions for installing that here

RUNNING THE APPLICATION

The following commmands run from the root directory of the project will start and play the first few frames of a game,

./sbt @bowling.build.properties
addPlayer Caoilte
addPlayer Walter
addPlayer Donny
start
score 10
score 2
score 8

etc

Because it uses SBT for command line support, command history and Parser Combinator tab completion come for free. For example, after entering score 2 above, pressing tab will display 0-8 as valid completions for the next score.

Once the game has finished it will print the final scores and then start a new game requiring new players names to be entered.

BUILDING THE APPLICATION

If you want to build the application yourself you will need to run the following commands

rm -rf project/boot/
./sbt
test
publish-local

The first rm removes the cached binaries. There is probably a good workaround for it, but I did not have sufficient time to investigate yet.

bowling's People

Contributors

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