100DaysOfCode: Day 23

Day 23 of the 100 days is another capstone project, the classic “turtle crossing game”. This is more or less a repetition from yesterday, but there are times where the concept (or the implementation) can be taken in. I like how the “cars” be generated, by doing this in the while loop:

a = random.randint(1, 6)
if a == 1:
    then generate the car

It ensure the car is generated randomly, but more or less a 1/6 chance. I like this new idea. Other than that, I basically wrote this on my own, and I am satisfied with what I can do now.

This entry was posted in 象哥的學習筆記 Study Notes and tagged . Bookmark the permalink.

Leave a Reply