Skip to content

Globals #9

@thecodingchicken

Description

@thecodingchicken

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions