From f79aec6b0f50447e8cf55c01a7a028104947cd32 Mon Sep 17 00:00:00 2001 From: ctcpip Date: Sat, 1 Jun 2024 03:22:01 -0500 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=9A=20organize=20files?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 4 ++-- algorithms.js => src/algorithms.js | 0 board.js => src/board.js | 0 client.js => src/client.js | 0 directions.js => src/directions.js | 0 game.js => src/game.js | 0 netrisse.js => src/netrisse.js | 0 pause.js => src/pause.js | 0 rando.js => src/rando.js | 0 screen.js => src/screen.js | 2 +- shape.js => src/shape.js | 0 shapes.js => src/shapes.js | 0 test/algorithm-test.js | 2 +- test/rando-test.js | 2 +- 14 files changed, 5 insertions(+), 5 deletions(-) rename algorithms.js => src/algorithms.js (100%) rename board.js => src/board.js (100%) rename client.js => src/client.js (100%) rename directions.js => src/directions.js (100%) rename game.js => src/game.js (100%) rename netrisse.js => src/netrisse.js (100%) rename pause.js => src/pause.js (100%) rename rando.js => src/rando.js (100%) rename screen.js => src/screen.js (97%) rename shape.js => src/shape.js (100%) rename shapes.js => src/shapes.js (100%) diff --git a/package.json b/package.json index 377ddae..75eeba5 100644 --- a/package.json +++ b/package.json @@ -2,9 +2,9 @@ "name": "netrisse", "description": "a network version of tetris for the console/terminal", "version": "2.0.0", - "main": "netrisse.js", + "main": "./src/netrisse.js", "bin": { - "netrisse": "./netrisse.js" + "netrisse": "./src/netrisse.js" }, "dependencies": { "mersenne-twister": "^1.1.0", diff --git a/algorithms.js b/src/algorithms.js similarity index 100% rename from algorithms.js rename to src/algorithms.js diff --git a/board.js b/src/board.js similarity index 100% rename from board.js rename to src/board.js diff --git a/client.js b/src/client.js similarity index 100% rename from client.js rename to src/client.js diff --git a/directions.js b/src/directions.js similarity index 100% rename from directions.js rename to src/directions.js diff --git a/game.js b/src/game.js similarity index 100% rename from game.js rename to src/game.js diff --git a/netrisse.js b/src/netrisse.js similarity index 100% rename from netrisse.js rename to src/netrisse.js diff --git a/pause.js b/src/pause.js similarity index 100% rename from pause.js rename to src/pause.js diff --git a/rando.js b/src/rando.js similarity index 100% rename from rando.js rename to src/rando.js diff --git a/screen.js b/src/screen.js similarity index 97% rename from screen.js rename to src/screen.js index 7fbb6e8..89de0be 100644 --- a/screen.js +++ b/src/screen.js @@ -1,5 +1,5 @@ const termkit = require('terminal-kit'); -const packageJSON = require('./package.json'); +const packageJSON = require('../package.json'); module.exports = class Screen { constructor(colorEnabled, interval, seed) { diff --git a/shape.js b/src/shape.js similarity index 100% rename from shape.js rename to src/shape.js diff --git a/shapes.js b/src/shapes.js similarity index 100% rename from shapes.js rename to src/shapes.js diff --git a/test/algorithm-test.js b/test/algorithm-test.js index 936a3d3..0a6a91a 100644 --- a/test/algorithm-test.js +++ b/test/algorithm-test.js @@ -1,4 +1,4 @@ -const { easy, frustrationFree, random, tooEasy } = require('../algorithms'); +const { easy, frustrationFree, random, tooEasy } = require('../src/algorithms'); const MersenneTwister = require('mersenne-twister'); const seed = new MersenneTwister().random_int(); diff --git a/test/rando-test.js b/test/rando-test.js index 3d508a3..11b3e71 100644 --- a/test/rando-test.js +++ b/test/rando-test.js @@ -1,5 +1,5 @@ const MersenneTwister = require('mersenne-twister'); -const Rando = require('../rando'); +const Rando = require('../src/rando'); const assert = require('node:assert'); const seed = new MersenneTwister().random_int();