Giter Site home page Giter Site logo

androidtaylor / bottles-of-beer-on-the-wall Goto Github PK

View Code? Open in Web Editor NEW
24.0 4.0 2.0 28 KB

This python3 program takes any amount of bottles (I wouldn't recommend above 10) and progressively gets more distorted as time continues. It is supposed to appear like the speaker is getting more and more drunk. This is my first program that actually does something fun, so feedback and suggestions would be appreciated!

Python 100.00%

bottles-of-beer-on-the-wall's Introduction

Bottles-of-Beer-on-the-Wall

This python3 program takes an arbitrary amount of bottles and progressively gets more distorted as time continues. It is supposed to appear like the speaker is getting more and more drunk.

Feedback and suggestions would be appreciated, be as harsh or gentle as you'd like!

bottles-of-beer-on-the-wall's People

Contributors

androidtaylor avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

bottles-of-beer-on-the-wall's Issues

Excellent job.

I don't "tweet", so comments get stuck here.

Commenting is spot on, enough to explain choices (i.e. avoiding 4+ caps in a row) sparse enough to stay out of the way. Comments are done well enough that while I'm not a parselmouth, I could very well follow the code.

Suggested improvements:

  • If the starting number is high enough, say 20+, you could add in a number "slip"
    • Skip a number, then come back to it; 12, 11, 10, 9, 7, 8, 6, 5 ...
    • Repeat a number, skipping over the next one; 12, 11, 10, 9, 8, 8, 6, 5 ... or 12, 11, 10, 9, 8, 8. 7, 6, 4, ...
    • A number slip could also be a sobering thought, increasing the concentration when the number of bottles is found to be miss counted :)
    • The sobering up could be a temporary decrease in the drunkeness score, the value of which is returned (doubled?) after a few more beers.
  • When "typing" a random character, make the replacement weighted in favor of a close substitute, such as 3 for e, 4 for h or a, ! for i, etc.
    • As the drunkeness score increases, the weighting can decrease
  • Random Unicode could make it even more interesting: 33 bottles of bəeər on the llɐʍ...
  • If the output method can handle it, perhaps add in an occasional "correction"; typing it wrong, backspacing and retyping it correctly, or less incorrectly anyway
  • Clean up the comments, (typos, and such, detract from the polish on the piece)

Happy coding.

sláinte mhaith

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.