basic bot
This commit is contained in:
15
protossbot/src/main.rs
Normal file
15
protossbot/src/main.rs
Normal file
@@ -0,0 +1,15 @@
|
||||
mod bot;
|
||||
pub mod game_state;
|
||||
|
||||
use bot::RustBot;
|
||||
use std::sync::{Arc, Mutex};
|
||||
use game_state::GameState;
|
||||
|
||||
|
||||
fn main() {
|
||||
println!("Starting RustBot...");
|
||||
|
||||
let game_state = Arc::new(Mutex::new(GameState::default()));
|
||||
|
||||
rsbwapi::start(move |_game| RustBot::new(game_state.clone() ));
|
||||
}
|
||||
Reference in New Issue
Block a user