فهرست منبع

Remove unused parameters from render function

ApisNecros 2 ماه پیش
والد
کامیت
f8b2f8df0b
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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);