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 Tic-Tac-Toe Game code in python #38

Merged
merged 12 commits into from
Oct 22, 2020

Conversation

arnab031
Copy link
Contributor

@arnab031 arnab031 commented Oct 19, 2020

Add Tic-Tac-Toe Game code in python

Fixes: #14

Type of change

  • [Y] New feature (non-breaking change which adds functionality)

Checklist:

  • [Y] My code follows the style guidelines of this project
  • [Y] I have performed a self-review of my own code
  • [Y] I have commented my code, particularly in hard-to-understand areas
  • [Y] I have made corresponding changes to the documentation
  • [Y] My changes generates no new warnings
  • [Y] I have added tests that prove my fix is effective or that my feature works
  • [Y] New and existing unit tests pass locally with my changes
  • [Y] Any dependent changes have been merged and published in downstream modules

Copy link
Contributor

@sakshamarora1 sakshamarora1 left a comment

Choose a reason for hiding this comment

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

Good work! I have left some comments for changes, go through them :D

@@ -0,0 +1,282 @@
# Tic-Tac-Toe game for multiplayer
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# Tic-Tac-Toe game for multiplayer
# Tic-Tac-Toe

Comment on lines 3 to 4
## Tic-Tac-Toe
Tic-Tac-Toe is a multiplayer simple game.
Copy link
Contributor

Choose a reason for hiding this comment

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

This is redundant. If you want to add stuff about the working of the code you can do so under the Description sub-heading


## Code
```python

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

```python

from os import system, name

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change


# import sleep to show output for some time period
from time import sleep

Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change

Comment on lines 20 to 21

# for mac and linux(here, os.name is 'posix')
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
# for mac and linux(here, os.name is 'posix')
# for mac and linux(here, os.name is 'posix')



clear()
str1 = "."
Copy link
Contributor

Choose a reason for hiding this comment

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

Can you come up with a better informative naming for these variables. For example, box1, block1, etc.
This goes for all the other variables too. To make it easier for other people to comprehend what's happening without wasting too much time!

Copy link
Contributor

@kaustubhgupta kaustubhgupta left a comment

Choose a reason for hiding this comment

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

LGTM :-)

@sakshamarora1 sakshamarora1 merged commit aa86728 into Developer-Students-Club-MAIT:master Oct 22, 2020
@sakshamarora1 sakshamarora1 added hacktoberfest hacktoberfest-accepted The PR will be counted towards hacktobetfest labels Oct 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted The PR will be counted towards hacktobetfest
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Tic-Tac-Toe Game
3 participants