programmingpython
#RI-6ac4785e·6 months ago·
1
“Created a game of 100 with alternating player and computer turns”
What Actually Happened
Tried to implement a for loop to make the computer try to make the second digit of the total be 9, but it caused the computer to skip its turn or spam inputs.
What I wish I knew
"How to properly implement a conditional statement within a for loop"
Advice to Someone Facing This Now
If I could tell you one thing
"Be careful when using for loops with conditional statements, and make sure to test your code thoroughly"
Regret Index
8/10
Clear regret.
The downsides outweighed what was gained.
The downsides outweighed what was gained.
Advice for Someone Facing This
Short, upvotable wisdom. The most helpful rises to the top.
No advice yet. Be the first to share wisdom.
programming Category
1
programming decisions logged. Avg regret 8/10 across the category.
Same Outcome Band
100%
of programming decisions land in the severe band the same as this one.
React, question, or discuss this decision.