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

New practice exercise connect #718

Merged
merged 14 commits into from
May 22, 2024
Merged

New practice exercise connect #718

merged 14 commits into from
May 22, 2024

Conversation

depial
Copy link
Contributor

@depial depial commented Mar 29, 2024

This is the practice exercise connect taken from problem-specifications with scaffolding created by configlet.

Possibly relevant points for reviewers to consider:

  • Difficulty has been set at 5 (Medium) due to use of a basic graph traversal algorithm in example.jl.
  • The name of the function tested is connect.
  • Verbose unit testing implemented
  • There is one extra edge case added to the tests: a 1x1 empty board, [ "." ], meant to complement the 1x1 full boards, [ "X" ] and [ "O" ]. Nothing was added to tests.toml in regard to this.

There are further possible edge cases related to the added one above, such as:

  • 0x0 board: [ "" ]
  • 1xn board, 0 wins: [ ". . . O . X . ." ]
  • 1xn board, X wins: [ "X X X X" ]
  • And nx1 variations...

These are mostly to prevent the use of length checks , but the already added edge case above probably does enough to discourage that (e.g. isone(length(board)) && return first(board) no longer works). Otherwise, testing seems to be sufficient to check for correctness, but a couple more tests could be added to provide more symmetry. For example, more O wins could be added since, of the 11 original tests, there are only two O wins, and one of those is an edge case.

depial added 5 commits March 29, 2024 07:53
Added blank description "" to top level testset in order to minimize the footprint of the description being prefixed to the lower level testsets' names on the website.
@depial depial mentioned this pull request Apr 17, 2024
10 tasks
@depial
Copy link
Contributor Author

depial commented May 13, 2024

If there is anyone @exercism/reviewers who would be interested in working with me to review some practice exercises to add to the track, please let me know.

@@ -0,0 +1,15 @@
{
"authors": [],
Copy link
Member

Choose a reason for hiding this comment

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

Missing author name here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I've added the original author's name

Copy link
Member

Choose a reason for hiding this comment

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

It should be your GitHub name if you're the one porting the exercise to this track.

Copy link
Contributor Author

@depial depial May 20, 2024

Choose a reason for hiding this comment

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

Is that required? Unless it necessary for some technical reason, I would prefer to leave my name off.

Copy link
Member

Choose a reason for hiding this comment

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

You can leave it off if you want. You just won’t get the additional rep points on Exercism for authoring the exercise (30 I believe). You’d only get rep for opening this PR.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for the clarification!

Copy link
Member

Choose a reason for hiding this comment

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

To be clear, it's your github username that's listed here.

depial added 2 commits May 19, 2024 11:48
Added original author's name
@depial
Copy link
Contributor Author

depial commented May 21, 2024

I've added my name to config.json, but I would rather prefer it be left off if possible.

Edit: reverted to an empty field for author's name, since adding mine is not necessary.

You can leave it off if you want. You just won’t get the additional rep points on Exercism for authoring the exercise (30 I believe). You’d only get rep for opening this PR.

Copy link
Member

@ErikSchierboom ErikSchierboom left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -0,0 +1,15 @@
{
"authors": [],
Copy link
Member

Choose a reason for hiding this comment

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

To be clear, it's your github username that's listed here.

@ErikSchierboom ErikSchierboom merged commit cb76145 into exercism:main May 22, 2024
10 checks passed
@depial depial deleted the connect branch May 22, 2024 14:03
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.

4 participants