Skip to main content

standard_new_game/
standard_new_game.rs

1#![forbid(unsafe_code)]
2
3use rustorio::{self, Bundle, Tick, gamemodes::Standard, resources::Point};
4
5type GameMode = Standard;
6
7type StartingResources = <GameMode as rustorio::GameMode>::StartingResources;
8
9fn main() {
10    rustorio::play::<GameMode>(user_main);
11}
12
13#[allow(unused_variables)]
14#[allow(unused_mut)]
15fn user_main(mut tick: Tick, starting_resources: StartingResources) -> (Tick, Bundle<Point, 200>) {
16    let StartingResources {
17        iron,
18        mut iron_territory,
19        mut copper_territory,
20        steel_technology,
21    } = starting_resources;
22
23    todo!("Return the `tick` and the victory resources to win the game!")
24}