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