image operations via Images.js, directory fun via Dirs.js

This commit is contained in:
Zutatensuppe 2021-04-21 19:22:58 +02:00
parent 0cbc8e69a3
commit 1089f70d5e
9 changed files with 122 additions and 166 deletions

View file

@ -5,11 +5,10 @@ import { Rng } from '../common/Rng.js'
import GameLog from './GameLog.js'
import { createPuzzle } from './Puzzle.js'
import Protocol from '../common/Protocol.js'
import { DATA_DIR } from './Dirs.js'
const log = logger('Game.js')
const DATA_DIR = './../data'
function loadAllGames() {
const files = fs.readdirSync(DATA_DIR)
for (const f of files) {