A multiplayer Qix-inspired territory capture game for the terminal.
Pixwar is a fast-paced multiplayer game where players compete to capture territory on a shared board. Leave trails as you move, close them off to claim territory, but watch out - if another player crosses your trail, you're eliminated!
- Multiplayer: 1-8 players over TCP/IP
- Terminal UI: Runs in any terminal with color support
- Simple controls: Arrow keys or WASD to move
- Qix-style gameplay: Capture territory by enclosing areas with your trail
go install github.com/diegok/pixwar/cmd/pixwar@latestOr build from source:
git clone https://github.com/diegok/pixwar.git
cd pixwar
go build -o pixwar ./cmd/pixwarpixwar --server --name YourNameThe server will display IP addresses that other players can use to connect.
pixwar --join <server-ip> --name YourName| Key | Action |
|---|---|
| Arrow keys / WASD | Move |
| Enter | Start game (host only) |
| Tab | Cycle players (spectator mode) |
| Q / Escape | Quit |
- Movement: Your player moves continuously in the current direction
- Trails: When outside your territory, you leave a vulnerable trail
- Capture: Close your trail by returning to your territory or a board edge
- Elimination: If another player crosses your trail, you're out
- Winning: Game ends when time runs out, one player remains, or someone captures 95% of the board
pixwar --server [options]
Options:
--port <port> Server port (default: 7777)
--time <minutes> Game duration (default: 5)
--threshold <pct> Territory % to win (default: 95)
--powerups Enable power-ups
--name <name> Your player name
- Single binary: Same executable runs as server or client
- Authoritative server: Server handles all game logic at 20 ticks/sec
- TCP networking: Reliable message delivery with gob encoding
- TUI: Built with tcell for cross-platform terminal support
MIT