Skip to content

Glasgow | ITP-May-26 | Alasdair MacDonald | Sprint 3 | Coursework 3 implement and rewrite#1298

Open
MacDonald91 wants to merge 7 commits into
CodeYourFuture:mainfrom
MacDonald91:coursework/sprint-3-implement-and-rewrite
Open

Glasgow | ITP-May-26 | Alasdair MacDonald | Sprint 3 | Coursework 3 implement and rewrite#1298
MacDonald91 wants to merge 7 commits into
CodeYourFuture:mainfrom
MacDonald91:coursework/sprint-3-implement-and-rewrite

Conversation

@MacDonald91
Copy link
Copy Markdown

@MacDonald91 MacDonald91 commented May 4, 2026

Learners, PR Template

Self checklist

  • I have titled my PR with Region | Cohort | FirstName LastName | Sprint | Assignment Title
  • My changes meet the requirements of the task
  • I have tested my changes
  • My changes follow the style guide

Changelist

resubmission.

Questions

n/a

@github-actions

This comment has been minimized.

@MacDonald91 MacDonald91 added the Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. label May 6, 2026
Copy link
Copy Markdown
Member

@illicitonion illicitonion left a comment

Choose a reason for hiding this comment

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

Looks good - just one thing to think about

// Examples:
assertEquals(getCardValue("9♠"), 9);
// Number cards
const validNumbers = ["2","3","4","5","6","7","8","9","10"];
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

This works but involves writing down a lot of numbers, and it would be hard to spot if any numbers in the middle aren't valid (e.g. if 7 wasn't valid) - can you think how to write this check in a more expressive way?

@illicitonion illicitonion added Reviewed Volunteer to add when completing a review with trainee action still to take. and removed Needs Review Trainee to add when requesting review. PRs without this label will not be reviewed. labels May 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Reviewed Volunteer to add when completing a review with trainee action still to take.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants