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