-
-
Notifications
You must be signed in to change notification settings - Fork 219
London_ITP_Jan|Aung_Ye_Kyaw |Module-Structuring-Testing-Data |Coursework/sprint 3 #329
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
Conversation
Can you (perhaps with the help of a volunteer) fix this branch so that it only contains modified files in the Sprint-3 folder? |
I did it . Could you please provide feedback. Thank you . |
hi CJ .. I did the change and force push . I hope this time it is success . Please check and kindly let me know . |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code have been improved! Good job!
I think some of the functions and descriptions can still be improved.
|
||
function getCardValue(card) { | ||
|
||
let cards = card.slice(0,-1); // drop one last letter from string |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why not use "rank" as variable name?
On separate note, we usually use plural form of an identifier for arrays.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have changed the variable as ranks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why use the plural form ranks
(instead of rank
)?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I use the ranks because it stored many items . (2-9) that is why .
shall i change to singular ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am not sure why you think ranks
store many items.
If card'
is "2♥"
, then after let ranks = card.slice(0,-1);
, ranks
will become "2"
.
It only stores the substring that represents the rank of a card. Its value depends on the value of card
, but it does not store more than one string value.
On the other hand, numberCards
is a good name choice for a variable storing an array of multiple strings.
It is up to you whether to change it or not. Just hope you get my point.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
noted! ..
I have change the variable .
Changes look good. Well done. |
Thank you so much for the reviews and feedback .. |
Hi ,
I hope you are well!
I have implemented functions .
Kindly check and let me know for any requirements and provide feedback or advice for better way for the codes.
Thank you so much.
Thanks and Regards,
Aung Ye Kyaw