Spaces:
Sleeping
Sleeping
Update app.js
Browse files
app.js
CHANGED
|
@@ -4,7 +4,7 @@ import cors from 'cors';
|
|
| 4 |
import { WebSocketServer, WebSocket } from 'ws';
|
| 5 |
import { v4 as uuidv4 } from 'uuid';
|
| 6 |
// Make sure this points to your JS mechanics file
|
| 7 |
-
import { resolveCombat, getDerivedStats, breedOffspring, INITIAL_STATE } from 'mechanics.js';
|
| 8 |
|
| 9 |
const app = express();
|
| 10 |
// Hugging Face Spaces and other cloud PaaS use process.env.PORT (HF uses 7860)
|
|
|
|
| 4 |
import { WebSocketServer, WebSocket } from 'ws';
|
| 5 |
import { v4 as uuidv4 } from 'uuid';
|
| 6 |
// Make sure this points to your JS mechanics file
|
| 7 |
+
import { resolveCombat, getDerivedStats, breedOffspring, INITIAL_STATE } from './mechanics.js';
|
| 8 |
|
| 9 |
const app = express();
|
| 10 |
// Hugging Face Spaces and other cloud PaaS use process.env.PORT (HF uses 7860)
|