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

Globals #9

Open
thecodingchicken opened this issue Jul 8, 2017 · 0 comments
Open

Globals #9

thecodingchicken opened this issue Jul 8, 2017 · 0 comments

Comments

@thecodingchicken
Copy link

field, the tic-tac-toe board, is global. Global variables aren't the best idea.

If they need the board, give it the board as one of the variables.
If it does something(beside printing the board), have it return the board as one of the variables
def doSomething(board):
_do some stuff_
return board

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

No branches or pull requests

1 participant