Giter Site home page Giter Site logo

bets's Introduction

Gambling

Questa è un'applicazione in Java scritta per educazione civica. Permette di salvare delle informazioni su delle scommesse localemente, e ho scritto uno shell script chiamato entry per facilitare l'intereazione (immagino dover scrivere gradle run --args='<args> per ogni comando possa diventare scomodo in fretta, vero?).

Ma come dovrei usare entry?

Anzitutto, non dimenticarsi di eseguire chmod +x entry.

# Aggiunge UN solo evento predeterminato.
./entry add-event 

# Aggiunge UNA sola scommessa predeterminata.
./entry add-bet 

# Aggiunge vari eventi predeterminati.
./entry add-events 

# Aggiunge varie scommesse predeterminate.
./entry add-bets 

# Mostra gli eventi.
./entry show-events 

# Mostra le scommesse.
./entry show-bets 

# Elimina il file `betting.dat`.
./entry clean-events 

# Elimina il file `amounts.dat`.
./entry clean-bets 

# clean-events && clean-bets.
./entry clean 

# Mostra le informazioni dell'evento $EVENT_ID (numero) dato un $RESULT.
# Il $RESULT deve essere uno dei seguenti: 1, X (case insensitive), 2.
# Mostrerà anche il budget risultante.
./entry bet $EVENT_ID $RESULT 

# Crea $COUNT (numero) false scommesse tramite il simulatore.
# Mostra gli ID degli eventi prima di farli scegliere!
./entry fake $COUNT

# Restituisce i vari dati richiesti dalla consegna.
# Chiede prima (in maniera interattiva) il codice dell'evento.
# Per favore, controllare che esistano delle scommesse per quell'evento!
./entry analyze

# Chiama `gradle run`, passando $ARGS nella flag `args`.
./entry raw $ARGS

bets's People

Contributors

serlovesferrets avatar

Stargazers

 avatar

Watchers

 avatar

bets's Issues

I calcoli danno risultati errati

I calcoli danno risultati potenzialmente (sicuramente) sbagliati.

La percentuale teorica è del >100%, mentre quella pratica è negativa.

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.