Supertictactoe / server.js

Commit History

Add idle self-play training
8e4c696

ausername-12345 commited on

Try /data storage bucket with runtime fallback to ./ai/ if write fails
14481c9

ausername-12345 commited on

Drop bucket mount approach, persist via Hub API pushes on each game save instead
0d8160e

ausername-12345 commited on

Seed model weights to DATA_DIR from git before training (fixes ENOENT /data/model_weights.json)
76910e4

ausername-12345 commited on

Fall back to ./ai/ if /data is not writable (EACCES on mounted buckets)
0ef7718

ausername-12345 commited on

Add logging for DATA_DIR and game saves to debug recording
d897083

ausername-12345 commited on

Persist game data and trained weights via HF Hub API (no bucket needed, uses built-in HF_TOKEN) + defer server start until init complete
2bae1ce

ausername-12345 commited on

Fix loadGames is not defined (missing import after fork refactor)
e9c3aaf

ausername-12345 commited on

Auto-detect HF /data persistent storage; no env var needed
1f59349

ausername-12345 commited on

Store training data and trained weights in DATA_DIR (configurable, survives HF Space restarts); fall back to git-tracked model_weights.json
e11b76f

ausername-12345 commited on

Run AI training in child process (fork) so server stays responsive during training
cdfdb11

ausername-12345 commited on

Auto-train AI every 5 games: background training, games-since-last-train counter, UI shows pending status
5122e74

ausername-12345 commited on

Train AI from human games: game recording, JS backprop training, value head init, Train AI button, record toggle
5c8e7e0

ausername-12345 commited on

Add AI mode: neural network opponent with MCTS-guided self-play training
090753a

ausername-12345 commited on

Update server.js
baeb927
verified

Sebebeb commited on

End game when all macro squares are owned (majority wins, tie=draw)
6dd2817

ausername-12345 commited on

Fix: lines through owned boards still count; only award unowned boards in the line
94fa226

ausername-12345 commited on

Revert: owned board cells are NOT nulled in global line detection grid
ff144f1

ausername-12345 commited on

Remove board-sending mechanic, restore free-play; keep owned-board cell nulling in global line detection
f6098c8

ausername-12345 commited on

Fix: null out owned board cells in global line detection; add board-sending mechanic
a29a6d9

ausername-12345 commited on

Update server.js
a663bd3
verified

Sebebeb commited on

Upload 9 files
decb686
verified

Sebebeb commited on