Giter Site home page Giter Site logo

discordbot's People

Contributors

fruggydk avatar

Watchers

 avatar

discordbot's Issues

user input

if the input is not an int, then come with message; you must input an integer
instead of the program terminating

fix output

Lav output med afvigelse i procent relativt til den statistiske change (lav en function, som udrengner den baseret pƄ variablerne dice, number of dice)

Doesn't work properly with 1

When you input 1 as the dice, then the output should always be 1, cause no matter how many dice you roll, the output will be 1:
fix:
the problem lies within the total function. example:
let dice = 1
let numberOfDice = 2
goal: [1,1] = 2 <- problem

fix with an checker before entering main loop

Improve user-input

Improve user-input: instead of asking over 3 lines, make it a single line.
maybe like this:
Input Dice, Number of dice, Runs (20,6,10)
In code:
userInput = [20,6,10] and then we should just assign the needed variables from this
dice = userInput[0]
and so on

Improve output

Improve output:

  • add progress-bar(based on runs)
  • Try to print the for loop output in a PTable {
    +---------------------------------------------------+
    <v1.0 - Made by Christian Kaae Larsen>
    Goal: [20, 20, 20, 20, 20, 20] = 120
    +run
    +---------------------------------------------------+
    }

Improve code(refactor)

  • improve code overall
  • try to make the main-loop into a function, so it can be accessed by external programs

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.