Something went wrong. Try again.
Star Gambit Computer Player SDK
Something went wrong. Try again.
123456789101112131415161718192021222324252627//! A trigger-happy skirmisher: a small but clear step up from `random_com`.//! Each step it takes its best available shot; failing that, it makes a move//! that sets up a shot; failing that, it plays a random legal action. It never//! wastes a gun, but it has no plan past the next shot — which keeps it below//! the planning `greedy_bot`.//!//! Usage: cargo run --example fire_com -- --token <api_token>//! or, running the built binary directly://! fire_com --token <api_token> [--server <url>]//!//! --server defaults to https://ws.stargamb.it.//!//! The strategy itself lives in `examples/strategy/mod.rs` so the com played//! here is identical to the one the `arena` example measures.
#[path = "strategy/mod.rs"]mod strategy;
use sg_sdk::operate_com;use strategy::FireCom;
fn main() { if let Err(e) = operate_com("fire_com", || FireCom) { eprintln!("fatal: {e}"); }}