| 4 | |
| 5 | #[derive(Default, Clone, Copy, Hash, PartialEq, Eq)] |
| 6 | struct State { |
| 7 | ore: u16, |
| 8 | ore_robots: u16, |
| 9 | clay: u16, |
| 10 | clay_robots: u16, |
| 11 | obsidian: u16, |
| 12 | obsidian_robots: u16, |
| 13 | geode: u16, |
| 14 | geode_robots: u16, |
| 15 | } |
| 16 | |
| 17 | fn earn(state: State, max_ore_cost: u16, max_clay_cost: u16, max_obs_cost: u16) -> State { |
| 18 | State { |
nothing calls this directly
no outgoing calls
no test coverage detected