Browse Source

Fix module exports

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

+ 3 - 1
13/common.js

@@ -12,7 +12,7 @@ const gameTiles = [
  * @param {number[]} screenState An array of numbers represent the state of the arcade screen
  * @returns {void}
  */
-export default function render(screenState) {
+function render(screenState) {
     if (screenState.length % 3 != 0) {
         console.warn("screenState length is not divisible by three!");
     }
@@ -66,3 +66,5 @@ function normalizeBoard(board, width, height) {
 
     return board;
 }
+
+module.exports = { render };