Go to file
Chris Mekelburg 57b45dbc3a Checkpoint 3
I enjoyed this style of problem solving, but it took me a while to figure
out the small straight. I kept thinking that I had it but then I realized
with testing and playing the game that I had forgotten about if the die
had duplicates. Originally 1,1,2,3,4 was not detecting a straight. Then
I thought checking in reverse would help this, but I forgot about
duplicates in the middle (1,2,3,3,4). Ultimately I had to add some code
to remove any duplicates from the list and then it finally worked.

I did find this problem solving to be easier to code once I found the
problem, but sometimes the problem (like with the example above) was not
always apparent. I spent more time thinking about how to solve the problem
in this topic compared to other topics, but less time debugging the actual
code than in previous units. I think I am becoming more familiar with the
coding and am starting to be able to use it to solve new problems.
2024-11-15 21:33:51 -05:00
.commit_template Initial commit 2024-08-27 23:08:36 +00:00
.gitignore Initial commit 2024-08-27 23:08:36 +00:00
dice_stats.py update b/w checkpont 1 and 2 2024-11-10 19:54:32 -05:00
die.py Initial commit 2024-08-27 23:08:36 +00:00
play.py Checkpoint 3 2024-11-15 21:33:51 -05:00
poetry.lock Initial commit 2024-08-27 23:08:36 +00:00
pyproject.toml Initial commit 2024-08-27 23:08:36 +00:00
testing.py Checkpoint 3 2024-11-15 21:33:51 -05:00
yahtzee.py Checkpoint 2 docstrings 2024-11-10 22:04:00 -05:00
yahtzee_goals.py Checkpoint 3 2024-11-15 21:33:51 -05:00