Browse Source

Remove unused parameters from render function

ApisNecros 2 months ago
parent
commit
f8b2f8df0b
1 changed files with 2 additions and 2 deletions
  1. 2 2
      13/common.js

+ 2 - 2
13/common.js

@@ -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);