-
Notifications
You must be signed in to change notification settings - Fork 1
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
Comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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
The text was updated successfully, but these errors were encountered: