From a99cb7e25336af18d17207bff37f094895f9d87e Mon Sep 17 00:00:00 2001 From: Satvinder31415 <53083658+Satvinder31415@users.noreply.github.com> Date: Thu, 5 Dec 2019 13:12:01 +0530 Subject: [PATCH 1/2] Commit #1 Removed redundant double call to diagonal_win() in winning_move() update logo update logo update logo update logo Resolved undo issue#13 Generalised some expressions Generalised some expressions Works for different board sizes Added animation and changable board patterns Update README.md Create CODE_OF_CONDUCT.md resolved col bug Resolved issue#21 run black on the project Minor bug fixes Added animation and changable board pattern Board pattern Changed a comment --- CODE_OF_CONDUCT.md | 76 +++++++++++++++++ README.md | 12 ++- assets.py | 1 + connect_game.py | 43 ++++++---- game.py | 1 + game_board.py | 10 +-- game_data.py | 28 +++++-- game_renderer.py | 177 +++++++++++++++++++++++---------------- images/board1_100px.png | Bin 0 -> 1635 bytes images/logo/c4.gif | Bin 0 -> 3348036 bytes images/logo/connect4.gif | Bin 0 -> 3369047 bytes requirements.txt | 3 +- 12 files changed, 244 insertions(+), 107 deletions(-) create mode 100644 CODE_OF_CONDUCT.md create mode 100644 images/board1_100px.png create mode 100644 images/logo/c4.gif create mode 100644 images/logo/connect4.gif diff --git a/CODE_OF_CONDUCT.md b/CODE_OF_CONDUCT.md new file mode 100644 index 0000000..65cf5ff --- /dev/null +++ b/CODE_OF_CONDUCT.md @@ -0,0 +1,76 @@ +# Contributor Covenant Code of Conduct + +## Our Pledge + +In the interest of fostering an open and welcoming environment, we as +contributors and maintainers pledge to making participation in our project and +our community a harassment-free experience for everyone, regardless of age, body +size, disability, ethnicity, sex characteristics, gender identity and expression, +level of experience, education, socio-economic status, nationality, personal +appearance, race, religion, or sexual identity and orientation. + +## Our Standards + +Examples of behavior that contributes to creating a positive environment +include: + +* Using welcoming and inclusive language +* Being respectful of differing viewpoints and experiences +* Gracefully accepting constructive criticism +* Focusing on what is best for the community +* Showing empathy towards other community members + +Examples of unacceptable behavior by participants include: + +* The use of sexualized language or imagery and unwelcome sexual attention or + advances +* Trolling, insulting/derogatory comments, and personal or political attacks +* Public or private harassment +* Publishing others' private information, such as a physical or electronic + address, without explicit permission +* Other conduct which could reasonably be considered inappropriate in a + professional setting + +## Our Responsibilities + +Project maintainers are responsible for clarifying the standards of acceptable +behavior and are expected to take appropriate and fair corrective action in +response to any instances of unacceptable behavior. + +Project maintainers have the right and responsibility to remove, edit, or +reject comments, commits, code, wiki edits, issues, and other contributions +that are not aligned to this Code of Conduct, or to ban temporarily or +permanently any contributor for other behaviors that they deem inappropriate, +threatening, offensive, or harmful. + +## Scope + +This Code of Conduct applies both within project spaces and in public spaces +when an individual is representing the project or its community. Examples of +representing a project or community include using an official project e-mail +address, posting via an official social media account, or acting as an appointed +representative at an online or offline event. Representation of a project may be +further defined and clarified by project maintainers. + +## Enforcement + +Instances of abusive, harassing, or otherwise unacceptable behavior may be +reported by contacting the project team. All +complaints will be reviewed and investigated and will result in a response that +is deemed necessary and appropriate to the circumstances. The project team is +obligated to maintain confidentiality with regard to the reporter of an incident. +Further details of specific enforcement policies may be posted separately. + +Project maintainers who do not follow or enforce the Code of Conduct in good +faith may face temporary or permanent repercussions as determined by other +members of the project's leadership. + +## Attribution + +This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, +available at https://www.contributor-covenant.org/version/1/4/code-of-conduct.html + +[homepage]: https://www.contributor-covenant.org + +For answers to common questions about this code of conduct, see +https://www.contributor-covenant.org/faq diff --git a/README.md b/README.md index db9ba76..6a1356a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@
-
+
=R0Sy!fsrl|j^ro;Av+;o>J
zA*aHIgFGt`JLqj2paM5=v`Cw@O1rd7+q6#mv`~8k4#Wp=DiGFa0u%6?^Tq%aumV6Z
z2Xo*BU@Nv_8@6U^wq;AUV|%u0i?(Z 8!xx{p2
z&a>wBmp~~<+~B-Cg5-;CI@7GAsoW==>zvFS@G6F2(rcq
z`Ez7dcWDzMJw}>3f2&sV9RGo=XL~&!n#uhfvH?0Ee5&1`bVFehr`BYAS+&I8K~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