Files
broodwarBot/protossbot/web
2026-01-22 21:12:34 -07:00
..
2026-01-22 21:12:34 -07:00
2026-01-22 21:12:34 -07:00
2026-01-22 21:12:34 -07:00
2026-01-22 21:12:34 -07:00
2026-01-21 22:13:49 -07:00

Protoss Bot Web Control Panel

A Leptos web interface to control the Protoss bot in real-time.

Setup

  1. Install cargo-leptos:
cargo install cargo-leptos
  1. Run the development server:
cd web
cargo leptos watch
  1. Open your browser to http://localhost:3000

Features

  • Game Speed Control: Set the desired game speed with convenient buttons
  • Real-time updates via server functions
  • Dark theme matching StarCraft aesthetics

Integration with Bot

The web server exposes a global GAME_SPEED variable that can be read by the bot. To integrate:

  1. Add the web crate as a dependency in your bot's Cargo.toml
  2. Read the speed value: protoss_bot_web::GAME_SPEED.read().unwrap()
  3. Apply it to the game using BWAPI's setLocalSpeed() or setFrameSkip()