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

The board box is drawn incorrectly. (bug in dist/index.js) #33

Open
wvenialbo opened this issue Nov 7, 2020 · 0 comments
Open

The board box is drawn incorrectly. (bug in dist/index.js) #33

wvenialbo opened this issue Nov 7, 2020 · 0 comments

Comments

@wvenialbo
Copy link

For the board box to be drawn correctly, since row-major order is used, lines 21 and 22 in dist/index.js must be changed to:

var boardWidth = game.boardSize[1];
var boardHeight = game.boardSize[0];

The error is not evident in the example since a 6x6 square board is used.

How does it look currently:
image

How does it look after changes:
image

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