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!
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)
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:
Happy coding.
sláinte mhaith