You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit e1b19a2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: README.md
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,3 +3,26 @@
3
3
A game library that serves as a training and evaluation environment for AI systems. It has Rust game engines behind one standardized API (REST, WebSocket and MCP), built-in opponents such as Stockfish, persistent match history, and a React + Phaser frontend for playing games, watching live matches and viewing replays.
4
4
5
5
See the [Product Requirements Document](docs/PRD.md).
Copy file name to clipboardExpand all lines: crates/apps/gfa-cli/src/main.rs
+99-7Lines changed: 99 additions & 7 deletions
Original file line number
Diff line number
Diff line change
@@ -1,29 +1,61 @@
1
1
//! GamesForAI command-line entry point for local play.
2
-
use gfa_server::{Config,ServerError};
2
+
use gfa_server::{Config,Database,ServerError};
3
3
use std::path::PathBuf;
4
4
5
-
constUSAGE:&str = "Usage: gfa serve [--sqlite PATH] [--port PORT]\n\nStarts a local API on 127.0.0.1 (default port 8080).\nSQLite defaults to ./gfa.sqlite. Port 0 selects an available port.";
5
+
constUSAGE:&str = "Usage: gfa serve [--sqlite PATH | --postgres-env VARIABLE] [--port PORT]\n\nStarts a local API on 127.0.0.1 (default port 8080).\nSQLite defaults to ./gfa.sqlite. Port 0 selects an available port.\nPostgreSQL requires the postgres build feature and reads its URL from VARIABLE.";
0 commit comments