-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
first commit #1172
base: master
Are you sure you want to change the base?
first commit #1172
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
https://SerhiiUnhurian.github.io/js_2048_game/
fix the demo link and then re-request the review
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
After start game nothing happening after press on any arrow button.
src/modules/Game.class.js
Outdated
|
||
/** | ||
* Resets the game. | ||
*/ | ||
restart() {} | ||
restart() { | ||
this.initGame(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
after restart game board should be without any tiles.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
still not fixed
I'm making new deployments but for some reason they don't appear, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
check pls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost done!
src/modules/Game.class.js
Outdated
// updateTable() { | ||
// const cells = document.querySelectorAll('.field-cell'); | ||
// let index = 0; | ||
|
||
// this.board.forEach((row) => { | ||
// row.forEach((cellValue) => { | ||
// const cell = cells[index++]; | ||
|
||
// cell.textContent = cellValue !== 0 ? cellValue : ''; | ||
// eslint-disable-next-line max-len | ||
// cell.className = `field-cell ${cellValue ? 'field-cell--' + cellValue : ''}`; | ||
// }); | ||
// }); | ||
// } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove all comments
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Well done
No description provided.