Skip to content

Commit

Permalink
🚚 organize files
Browse files Browse the repository at this point in the history
  • Loading branch information
ctcpip committed Jun 1, 2024
1 parent 73805b4 commit 84e6211
Show file tree
Hide file tree
Showing 14 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions board.js → src/board.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { shapes } = require('./shapes');
const Shape = require('./shape');
const { shapes } = require('../shapes');
const Shape = require('../shape');
const directions = require('./directions');
const Rando = require('./rando');
const { messageTypeEnum } = require('netrisse-lib');
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
8 changes: 4 additions & 4 deletions netrisse.js → src/netrisse.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
const Board = require('./board');
const Board = require('./src/board');
const Screen = require('./screen');
const Game = require('./game');
const directions = require('./directions');
const algorithms = require('./algorithms');
const directions = require('./src/directions');
const algorithms = require('./src/algorithms');
const MersenneTwister = require('mersenne-twister');
const NetrisseClient = require('./client');
const NetrisseClient = require('./src/client');
const { debug, messageTypeEnum } = require('netrisse-lib');
const withResolvers = require('promise.withresolvers');

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion shape.js → src/shape.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { shapes } = require('./shapes');
const directions = require('./directions');
const directions = require('./src/directions');
const { messageTypeEnum } = require('netrisse-lib');

module.exports = class Shape {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion test/algorithm-test.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down
2 changes: 1 addition & 1 deletion test/rando-test.js
Original file line number Diff line number Diff line change
@@ -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();
Expand Down

0 comments on commit 84e6211

Please sign in to comment.