Giter Club home page Giter Club logo

roulette's Introduction

Roulette

Image of Roulette

Table of Contents

Configuration

A config.properties file is provided to conifgure and tune certain properties The time between each random number is generated can be configured - default to 30 seconds

The input file path to the game is also configurable. Need to make sure it points to the correct path.

Build

mvn clean verify

Running the Game

  1. Run from terminal/Command line
cd target/classes

and then run:

java -cp ".:lib/*" Roulette
  1. Run from IDE

Main class in Roulette.java

Stopping the Game

if game is run from terminal, ctrl-c or similar will kill the program, likewise when run from IDE can be stopped from IDE controls

Logging

Logging is available and SLF4j is used with Log4j the implementation

The logging level can be changed in the log4j.properties file according to needs.

Currently set to DEBUG level.

The log file is output.log

Limitations

  1. There is a single console for both reading in lines and outputting betting results
  2. The system console is from a terminal window/command line
  3. The game once started will run indefinitely, until it is stopped
  4. Performance is not considered
  5. Same player can place another bet (but the new bet will override the previous bet)
  6. Input file would be correctly configured and loaded with all data on startup

roulette's People

Contributors

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