Skip to content

Connect Four Game#560

Merged
HassanAbouelela merged 31 commits into
python-discord:masterfrom
Shivansh-007:feature/connect_four
Feb 24, 2021
Merged

Connect Four Game#560
HassanAbouelela merged 31 commits into
python-discord:masterfrom
Shivansh-007:feature/connect_four

Conversation

@Shivansh-007
Copy link
Copy Markdown
Contributor

@Shivansh-007 Shivansh-007 commented Jan 19, 2021

Relevant Issues

Continued #365 as the original contributor ditched it.
And closes #244

Description

Implemented all the changes which were requested in the pr, and changed the bot message to a embed rather than content.

  • Dynamic Board size
  • Checks for user already playing/in waiting room.

Screenshots

Screenshot from 2021-01-19 06-13-42
Screenshot from 2021-01-19 06-14-57
Screenshot from 2021-01-19 06-15-47
Screenshot from 2021-01-19 06-16-26

Additional Details

When playing against a CPU there's

  • a 1 in 10 chance they will NOT place the counter in the correct spot to win when possible
  • a 1 in 4 chance they will NOT block the player from winning where possible

Did you:

  • Join the Python Discord Community?
  • If dependencies have been added or updated, run pipenv lock?
  • Lint your code (pipenv run lint)?
  • Set the PR to allow edits from contributors?

@HassanAbouelela HassanAbouelela mentioned this pull request Jan 19, 2021
4 tasks
@HassanAbouelela HassanAbouelela added season: evergreen status: needs review Author is waiting for someone to review and approve type: feature Relating to the functionality of the application. labels Jan 19, 2021
Copy link
Copy Markdown
Contributor

@HassanAbouelela HassanAbouelela left a comment

Choose a reason for hiding this comment

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

Well done so far! You are well on your way to making your first contibution. One request: can you add a way to stop a game early? Right now you either have to wait out the 30 second timeout or finish the game.

Comment thread bot/exts/evergreen/connect_four.py
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
@HassanAbouelela HassanAbouelela added status: WIP Work In Progress and removed status: needs review Author is waiting for someone to review and approve labels Jan 19, 2021
Copy link
Copy Markdown
Contributor

@HassanAbouelela HassanAbouelela left a comment

Choose a reason for hiding this comment

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

Bumping some still open comments, and a bug. I'll leave a more complete review after they've been addressed.

Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py
Comment thread bot/exts/evergreen/connect_four.py
Comment thread bot/exts/evergreen/connect_four.py
…game over (winner/loser) code ; add case_insensitive alias
@Shivansh-007
Copy link
Copy Markdown
Contributor Author

@HassanAbouelela Mentioned all requested changes!
(and fixed another bug - there was no message when the user Drew)

@Xithrius Xithrius added area: backend Related to internal functionality and utilities level: 1 - intermediate labels Jan 24, 2021
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
@Xithrius Xithrius mentioned this pull request Feb 7, 2021
4 tasks
Comment thread bot/exts/evergreen/connect_four.py
Comment thread bot/exts/evergreen/connect_four.py
Comment thread bot/exts/evergreen/connect_four.py
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py Outdated
Comment thread bot/exts/evergreen/connect_four.py
Comment thread bot/exts/evergreen/connect_four.py
@Shivansh-007
Copy link
Copy Markdown
Contributor Author

@ChrisLovering Mentioned requested changes :D.

Copy link
Copy Markdown
Member

@ChrisLovering ChrisLovering 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 to me, tested locally too 👍

Comment thread bot/exts/evergreen/error_handler.py
Co-authored-by: Hassan Abouelela <47495861+HassanAbouelela@users.noreply.github.com>
@HassanAbouelela HassanAbouelela merged commit 09c79fa into python-discord:master Feb 24, 2021
@Shivansh-007 Shivansh-007 deleted the feature/connect_four branch February 24, 2021 15:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: backend Related to internal functionality and utilities status: WIP Work In Progress type: feature Relating to the functionality of the application.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Feature Request] Connect Four!

4 participants