-
-
Notifications
You must be signed in to change notification settings - Fork 70
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
Conversation
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.
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": [], |
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.
Missing author name here
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've added the original author's name
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.
It should be your GitHub name if you're the one porting the exercise to this track.
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.
Is that required? Unless it necessary for some technical reason, I would prefer to leave my name off.
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.
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.
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.
Thanks for the clarification!
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.
To be clear, it's your github username that's listed here.
Added original author's name
I've added my name to Edit: reverted to an empty field for author's name, since adding mine is not necessary.
|
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.
LGTM
@@ -0,0 +1,15 @@ | |||
{ | |||
"authors": [], |
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.
To be clear, it's your github username that's listed here.
This is the practice exercise
connect
taken fromproblem-specifications
with scaffolding created by configlet.Possibly relevant points for reviewers to consider:
example.jl
.connect
.[ "." ]
, meant to complement the 1x1 full boards,[ "X" ]
and[ "O" ]
. Nothing was added totests.toml
in regard to this.There are further possible edge cases related to the added one above, such as:
[ "" ]
0
wins:[ ". . . O . X . ." ]
X
wins:[ "X X X X" ]
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, moreO
wins could be added since, of the 11 original tests, there are only twoO
wins, and one of those is an edge case.