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

CHAPTER1 ,TicTacToe.py: Purpose of reshape function? #79

Closed
pk97 opened this issue Jul 17, 2018 · 1 comment
Closed

CHAPTER1 ,TicTacToe.py: Purpose of reshape function? #79

pk97 opened this issue Jul 17, 2018 · 1 comment

Comments

@pk97
Copy link

pk97 commented Jul 17, 2018

for i in self.data.reshape(BOARD_ROWS * BOARD_COLS):

What is the purpose of using reshape staement, line no.34? It works even without it.

@ShangtongZhang
Copy link
Owner

data is 2D, reshape makes it 1D. The for loop should behave differently.

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

2 participants