Jelajahi Sumber

Remove unused parameters from render function

ApisNecros 2 bulan lalu
induk
melakukan
f8b2f8df0b
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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
  * @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);