RESTART
How to play?
Gameplay:
>> After starting the game,
you'll see the game
>>
Your goal is to cut the board into procedurally declared blocks.
>> To cut a block, tap on the
board to select the squares you want to include in the block.
>> Once you've selected
a block, it will be highlighted.
Scoring:
>> Your score is calculated
based on the number of blocks you successfully cut.
>>
The game will alert you when you complete a level or reach certain
milestones in your score.
Winning:
>> If you reach level 128, you
win the game.
>>
Alternatively, you can win by completing all levels with a high score.
RESTART
window.onload = function() {
const toggleButton = document.getElementById('themeButton');
const body = document.body;
toggleButton.addEventListener('click', () => {
body.classList.toggle('light-theme');
body.classList.toggle('dark-theme');
});
};
function closeDialog() {
document.getElementById("dialogBox").style.display = "none";
document.getElementById("overlay").style.display = "none";
}
function restartGame() {
document.getElementById("myModal").style.display = "none";
}