Giter Site home page Giter Site logo

coin-toss-sim's Introduction

Coin Toss Simulator

Jaskier, don't even

Tossing a coin for heads/tails is as old as coins themselves, I guess.

This allows you to throw really a lot of coins, even {insert a large number here}.

Now uses a sqlite3.

Roadmap for Coin Toss Simulator project

  • Make a coin toss app to decide heads/tails when run. (DONE)
  • Make "best out of three" coin toss. (DONE)
  • User specifies how many tosses they want to do. The script tosses the coin N times (saves the result into a list), then counts occurences, compares and decides for a winner. (DONE)
  • Implement SQLite support for coin tosses, so it does not crash when you flip the coin 100 milion times. (DONE using Peewee ORM)
  • The script should remember if you try to cheat it - toss the coin zero number of times, negative number of times, or you try to feed the input different data type other than INT.
  • Implement Lady Luck type of figure. There should be a chance that she would favour one side of coin over the other.

More to come.

Credits and thanks

This project couldn't have been done without me, so I would like to thank me for writing it and navigating bravely the treatcherous waters of it all.

Warnings

The coins lie, do not trust them.

coin-toss-sim's People

Contributors

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