Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Beauttie and Maha #25

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Beauttie and Maha #25

wants to merge 16 commits into from

Conversation

Maha-ElMais
Copy link

Assignment Submission: Adagrams

Congratulations! You're submitting your assignment. Please reflect on the assignment with these questions.

Reflection

Feature Feedback
What are the components that make up a method?
The method signature, the parameters, the block of code, the return statement.

What are the advantages of using git when collaboratively working on one code base? |
To be able to collaborate and see the reflected changes in the code.

What kind of relationship did you and your pair have with the unit tests? |
We did not use the unit tests.

Does your code use any methods from the Enumerable mixin? If so, where and why was it helpful? |
Yes we used .map .max .min .each .flatmap .delete_at

What was one method you and your pair used to debug code? |
We used repl irb to test whether the method was returning the correct score and later the correct word with the highest score given a tie.

What are two discussion points that you and your pair discussed when giving/receiving feedback from each other that you would be willing to share? |
We discussed the ask/guess culture and talked through our preferences when it comes to giving/receiving feedback.

Copy link

@beccaelenzil beccaelenzil left a comment

Choose a reason for hiding this comment

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

Adagrams

Major Learning Goals/Code Review

Criteria yes/no, and optionally any details/lines of code to reference
Correctly creates and calls methods with proper syntax (parameters, return statements, etc.) ✔️
Uses correct syntax for conditional logic and iteration ✔️
Practices git with at least 3 small commits and meaningful commit messages ✔️
Utilizes unit tests to verify code; tests can run using the command $ rake and we see test successes and/or failures ✔️
Practices pair programming; the reflection question on pair programming is answered ✔️

Functional Requirements

Functional Requirement yes/no
For the draw_letters method, there is an appropriate data structure to store the letter distribution. (You are more likely to draw an 'E' than an 'X'.) ✔️
Utilizes unit tests to verify code; all tests for draw_letters and uses_available_letters? pass ✔️
Utilizes unit tests to verify code; all tests for score_word pass ✔️
Utilizes unit tests to verify code; all tests for highest_score_from pass ✔️

Overall Feedback

Great work on this project! It is clear that the learning goals around manipulating data and writing methods were met. You've made good use of enumerables to work through some tricky logic and hashes to store the relevant data. Your code is clear and readable. Keep up the hard work!

Overall Feedback Criteria yes/no
Green (Meets/Exceeds Standards) 4+ in Code Review && 3+ in Functional Requirements ✔️
Yellow (Approaches Standards) 3+ in Code Review && 2+ in Functional Requirements
Red (Not at Standard) 0-2 in Code Review or 0,1 in Functional Reqs, or assignment is breaking/doesn’t run with less than 5 minutes of debugging

Code Style Bonus Awards

Was the code particularly impressive in code style for any of these reasons (or more...?)

Quality Yes?
Perfect Indentation
Elegant/Clever
Descriptive/Readable
Concise
Logical/Organized


# Wave 3
def score_word(word)
score_chart = {

Choose a reason for hiding this comment

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

Great use of a hash to store this data

word: words[scores.index(max_score)],
score: max_score
}
else

Choose a reason for hiding this comment

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

Nice work working through this tiebreaking logic with the help of some enumerable methods. Consider breaking out this logic into its own method.

def is_in_english_dict?(input)
dictionary = CSV.read('assets/dictionary-english.csv', headers: true).map { |word| word["Word"] }

return dictionary.include?(input.downcase)

Choose a reason for hiding this comment

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

Nice work using .include? to directly return a boolean value.

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