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

India & Leah - Water #19

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

India & Leah - Water #19

wants to merge 5 commits into from

Conversation

scottzec
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? Method signature, Parameter(s), Code Block, Return Statement
What are the advantages of using git when collaboratively working on one code base? It makes it easier to share our code. We also have a detailed track record of every step of our code per Wave, in case we change something and break the code. We are able to work on our individual computers but using the same version of the same code.
What kind of relationship did you and your pair have with the unit tests? We ran the tests after changing part of code to see how that code changed the outcome of the test. We initially wrote our code following the written description of the different waves and didn't actually change our code incrementally based on each test. We used more for troubleshooting.
Does your code use any methods from the Enumerable mixin? If so, where and why was it helpful? .split (We split an input word string into individual string letters within the array, .include? (We used it to see if each letter a user input was present in the hand of original letters they were given), .delete_at (Each letter that was included, we then deleted it in the copy of the letters_in_hand array to make sure there was no repetition), .length (We used this to compare the lengths of the words to determine what the winning word was)
What was one method you and your pair used to debug code? We put in many puts and pp and print statements to see the current value of our variables were at different times. We often created sample letters_in_hand or input words to see if they worked for our own understanding of our code before running the tests.
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 both reflected that we could have spent more time individually between our meetings each day reviewing the current code so we wouldn't be rusty upon beginning. We were both a bit nervous for our first pair programming, but we communicated and worked smoothly, never getting stuck on anything for too long, and we also made it work really well even with the 9 hour time difference!

Copy link

@dHelmgren dHelmgren 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

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

Quality Yes?
Perfect Indentation
Concise

Comment on lines +59 to +72
when "a", "e", "i", "o", "u", "l", "n", "r", "s", "t"
score += 1
when "d", "g"
score += 2
when "b", "c", "m", "p"
score += 3
when "f", "h", "v", "w", "y"
score += 4
when "k"
score += 5
when "j", "x"
score += 8
when "q", "z"
score += 10

Choose a reason for hiding this comment

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

you can also do this by using a hash, but this works great!

Comment on lines +139 to +160
# array = ["a", "a", "a", "b", "c", "d", "e"]
# #Does a method exist that takes into account probability into random generation?
# # --> India will look into
#
#
# array1 = [
# ["a", "b", "c", "d", ...],
# ["a", "b", "c", "d", ...],
# ["a", "d", ...]...
# ]
#
# data_structure = {a: 9/84, b:3/84, c:7, } #complicated to deduct
#
# data_structure = {a: 9, b:3, c:7, } #not weighted by probability
#
#
#
#
#
# hash * key


Choose a reason for hiding this comment

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

when you turn in work, it's good to get rid of notes like this!! :)

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