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

Add State of Tic-Tac-Toe Exercise #651

Merged
merged 2 commits into from
May 8, 2024

Conversation

tomasnorre
Copy link
Contributor

@tomasnorre tomasnorre commented Feb 29, 2024

Todo:

  • Add Enum when we have PHP 8.1 as min requirement

@mk-mxp mk-mxp added x:action/create Work on something from scratch x:knowledge/elementary Little Exercism knowledge required x:module/practice-exercise Work on Practice Exercises x:size/large Large amount of work x:rep/large Large amount of reputation labels Feb 29, 2024
Copy link
Contributor

@mk-mxp mk-mxp left a comment

Choose a reason for hiding this comment

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

The current solution using strings as the result is according to specification.

But I think, this is the perfect exercise to use an enum as a return type. That would mean, a) changing the implementation and b) pause the merging, until we have PHP8.1 as minimum version.

I would be very happy, if you agree to wait for that. When we merge this now, we cannot change the interface later to use enum as that invalidates all submitted solutions.

What do you think?

@mk-mxp mk-mxp added the paused Work paused until further notice label Feb 29, 2024
@tomasnorre
Copy link
Contributor Author

tomasnorre commented Feb 29, 2024

The current solution using strings as the result is according to specification.

But I think, this is the perfect exercise to use an enum as a return type. That would mean, a) changing the implementation and b) pause the merging, until we have PHP8.1 as minimum version.

I would be very happy, if you agree to wait for that. When we merge this now, we cannot change the interface later to use enum as that invalidates all submitted solutions.

What do you think?

I'm perfectly fine with enum and waiting. I think enum makes perfectly sense in this case.

Edit: Just for information, I have added this thread to the Forum
https://forum.exercism.org/t/php-versions-support/10070

@tomasnorre
Copy link
Contributor Author

It's expected to fail in PHP 8.0 as I have already added the enum we talked about yesterday. Then we might just need to rebase when we are ready to merge.

@mk-mxp
Copy link
Contributor

mk-mxp commented Mar 2, 2024

That's looks great! Looking forward to having a minimum of PHP 8.1...

@mk-mxp
Copy link
Contributor

mk-mxp commented May 5, 2024

@tomasnorre Today the PHP track got upgraded to the required PHP version. You may rebase this branch and update the PR.

@mk-mxp mk-mxp added x:type/content Work on content (e.g. exercises, concepts) and removed paused Work paused until further notice labels May 6, 2024
@tomasnorre tomasnorre force-pushed the add-state-of-tic-tac-toe-exercise branch from 3e54669 to f487a58 Compare May 7, 2024 19:44
@tomasnorre
Copy link
Contributor Author

tomasnorre commented May 7, 2024

I must have done something wrong in the rebasing. As all the changes are included.

I did

  1. Sync my fork
  2. git checkout branch
  3. git rebase main
  4. git push --force

Update: Looks better now. I did the sync of my fork incorrect.

@tomasnorre tomasnorre force-pushed the add-state-of-tic-tac-toe-exercise branch from f487a58 to 0f5c86d Compare May 7, 2024 19:48
Copy link
Contributor

@mk-mxp mk-mxp left a comment

Choose a reason for hiding this comment

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

Great! Thanks a lot.

@mk-mxp mk-mxp merged commit d206439 into exercism:main May 8, 2024
12 checks passed
@tomasnorre tomasnorre deleted the add-state-of-tic-tac-toe-exercise branch May 8, 2024 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
x:action/create Work on something from scratch x:knowledge/elementary Little Exercism knowledge required x:module/practice-exercise Work on Practice Exercises x:rep/large Large amount of reputation x:size/large Large amount of work x:type/content Work on content (e.g. exercises, concepts)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants