|
@@ -13,7 +13,7 @@ const gameTiles = [
|
|
* @param {boolean} autoplay If true, the game will autoplay itself
|
|
* @param {boolean} autoplay If true, the game will autoplay itself
|
|
* @returns {void}
|
|
* @returns {void}
|
|
*/
|
|
*/
|
|
-function _render(screenState, autoplay = false) {
|
|
|
|
|
|
+function _render(screenState) {
|
|
if (screenState.length % 3 != 0) {
|
|
if (screenState.length % 3 != 0) {
|
|
console.warn("screenState length is not divisible by three!");
|
|
console.warn("screenState length is not divisible by three!");
|
|
}
|
|
}
|
|
@@ -65,7 +65,7 @@ function _render(screenState, autoplay = false) {
|
|
}
|
|
}
|
|
|
|
|
|
function renderToConsole(screenState) {
|
|
function renderToConsole(screenState) {
|
|
- const [boardState, gameScore, blockTileCount, ballX, paddleX] = _render(screenState, false, true);
|
|
|
|
|
|
+ const [boardState, gameScore, blockTileCount, ballX, paddleX] = _render(screenState);
|
|
console.clear();
|
|
console.clear();
|
|
console.log("Score: ", gameScore);
|
|
console.log("Score: ", gameScore);
|
|
console.log(boardState);
|
|
console.log(boardState);
|