-
Notifications
You must be signed in to change notification settings - Fork 26
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
Allow players to choose game configuration #260
base: master
Are you sure you want to change the base?
Conversation
subscriptions="connect-four-{{ game.id }}{{ game.chatId ? ',chat-' ~ game.chatId }}" | ||
{% if app.environment == 'dev' %}verbose{% endif %}> | ||
</event-source> | ||
<script type="module"> |
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.
Instead of this inline script, a sticky custom element should handle challenges. Basically like it was before, but a little bit more powerful, so users can navigate through the page.
c273bce
to
1742016
Compare
1b6e428
to
ed43298
Compare
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.
Copilot reviewed 10 out of 26 changed files in this pull request and generated no suggestions.
Files not reviewed (16)
- assets/css/app.css: Language not supported
- config/connect-four/importmap.php: Language not supported
- src/ConnectFour/Application/Game/Command/OpenCommand.php: Language not supported
- src/ConnectFour/Application/Game/Command/OpenHandler.php: Language not supported
- src/ConnectFour/Domain/Game/Board/Size.php: Language not supported
- src/ConnectFour/Domain/Game/Board/Stone.php: Language not supported
- src/ConnectFour/Domain/Game/Configuration.php: Language not supported
- src/ConnectFour/Domain/Game/Event/GameAborted.php: Language not supported
- src/ConnectFour/Domain/Game/Event/GameOpened.php: Language not supported
- src/ConnectFour/Domain/Game/Event/PlayerJoined.php: Language not supported
- src/ConnectFour/Domain/Game/Game.php: Language not supported
- src/ConnectFour/Domain/Game/State/Open.php: Language not supported
- src/ConnectFour/Domain/Game/State/Running.php: Language not supported
- src/WebInterface/Presentation/Http/ConnectFourController.php: Language not supported
- src/WebInterface/Presentation/Http/Form/OpenType.php: Language not supported
- src/WebInterface/Presentation/Http/PageController.php: Language not supported
Comments skipped due to low confidence (2)
config/web-interface/services/controller.yml:4
- The '@twig' service is removed from the arguments list for the 'web-interface.page-controller'. If the controller relies on the Twig service for rendering views, this will cause runtime errors.
arguments: ['@connect-four.query-bus', '@web-interface.security']
config/web-interface/routing.yml:80
- The removal of the '_format: json' default may cause issues if the controller expects a JSON format. Ensure the controller can handle requests without this default or re-add it if necessary.
defaults: { _format: json }
9d131ee
to
332a3ec
Compare
3826e1f
to
f625ae7
Compare
if ($width < 2 || $height < 2) { | ||
throw new InvalidSizeException('Width and height must be greater then 1.'); | ||
} | ||
|
||
if (($width * $height) % 2 !== 0) { |
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.
That logic made sense because otherwise player 1 would have more moves than player 2. However, a 9x7 board size is valid according to Wikipedia.
f625ae7
to
26f1bfc
Compare
26f1bfc
to
778beb6
Compare
f7bccb9
to
929c7bc
Compare
929c7bc
to
6f5354d
Compare
This pull requests partially introduces a new concept, the challenge - described in #123, for views. It's not introducing the whole concept explicitly, otherwise the pull request would be too big.