Skip to content

C17 Otters - Ying Goings + Liqing Li#41

Open
yinggoings wants to merge 11 commits intoada-c17:masterfrom
yinggoings:master
Open

C17 Otters - Ying Goings + Liqing Li#41
yinggoings wants to merge 11 commits intoada-c17:masterfrom
yinggoings:master

Conversation

@yinggoings
Copy link

No description provided.

@yinggoings yinggoings closed this Apr 1, 2022
@yinggoings yinggoings reopened this Apr 1, 2022
Copy link

@jbieniosek jbieniosek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great work on this project Liqing and Ying! I am a huge fan of your PLAN.md doc, and I am going to suggest that as an addition to the project for future cohorts. Very clean, readable code in this project! Nice work with frequent commits - I did notice that there is only one commit that adds both waves 2 & 3, in the future I recommend adding a few more commits as you're progressing through waves of a project. This project is green.

Comment on lines +80 to +85
while len(letters_drawn) < 10:
letter_drawn = random.choice(letter_options)
if letter_pool_copy[letter_drawn] >= 1:
letters_drawn.append(letter_drawn)
letter_pool_copy[letter_drawn] -= 1
return letters_drawn

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

for char in upper_word:
if not char_counts[char]:
return False
char_counts[char] -= 1

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Neat solution! How would you solve this if you didn't have the Counter package?

points += POINT_SYSTEM[char.upper()]
if len(word) >= 7 and len(word) <= 10:
points += 8
return points

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

Comment on lines +111 to +113
if score_word(word) == max_score and len(max_word) != 10:
if len(word) == 10 or len(word) < len(max_word):
max_word = word

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fantastic solution!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants