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

Chess: Port application to GML #24329

Merged
merged 2 commits into from
May 16, 2024
Merged

Chess: Port application to GML #24329

merged 2 commits into from
May 16, 2024

Conversation

d-gaston
Copy link
Contributor

@d-gaston d-gaston commented May 14, 2024

This PR adds the chess application to the Chess namespaces and then ports the
chess application to GML in order to facilitate the addition of widgets in the future.

@github-actions github-actions bot added the 👀 pr-needs-review PR needs review from a maintainer or community member label May 14, 2024
Copy link
Member

@LucasChollet LucasChollet 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 overall, but some things needs to be changed. If I were you, I would make the changes this way:

  1. Put everything needed in the Chess namespace, add Gfx:: where needed
  2. Make "functional" changes (background color, and adding the ellipsis)
  3. Do the actual port to GML

Userland/Games/Chess/CMakeLists.txt Show resolved Hide resolved
Userland/Games/Chess/ChessWidget.cpp Outdated Show resolved Hide resolved
Userland/Games/Chess/ChessWidget.cpp Outdated Show resolved Hide resolved
Userland/Games/Chess/PromotionDialog.cpp Outdated Show resolved Hide resolved
Userland/Games/Chess/PromotionDialog.cpp Outdated Show resolved Hide resolved
Userland/Games/Chess/PromotionDialog.cpp Outdated Show resolved Hide resolved
Userland/Games/Chess/PromotionDialog.h Outdated Show resolved Hide resolved
Userland/Games/Chess/PromotionDialog.cpp Show resolved Hide resolved
Userland/Games/Chess/PromotionDialog.cpp Outdated Show resolved Hide resolved
Userland/Games/Chess/PromotionDialog.h Outdated Show resolved Hide resolved
This is required to port the application to GML.
@d-gaston d-gaston force-pushed the chess-gml branch 2 times, most recently from 6414f5e to e79414f Compare May 15, 2024 15:01
@timschumi timschumi self-requested a review May 15, 2024 16:18
Copy link
Member

@LucasChollet LucasChollet left a comment

Choose a reason for hiding this comment

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

Apart from a nitpick, LGTM!

Userland/Games/Chess/PromotionDialog.h Show resolved Hide resolved
This commit ports the chess application to GML in order to
facilitate the addition of widgets in the future.
@LucasChollet LucasChollet added ✅ pr-community-approved PR has been approved by a community member and removed 👀 pr-needs-review PR needs review from a maintainer or community member labels May 15, 2024
@AtkinsSJ AtkinsSJ merged commit 55fe04a into SerenityOS:master May 16, 2024
11 of 12 checks passed
@github-actions github-actions bot removed the ✅ pr-community-approved PR has been approved by a community member label May 16, 2024
@d-gaston d-gaston deleted the chess-gml branch May 16, 2024 12:10
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.

None yet

4 participants