MCPcopy Create free account
hub / github.com/AxlLind/AdventOfCode / State

Class State

2022/src/bin/19.rs:6–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4
5#[derive(Default, Clone, Copy, Hash, PartialEq, Eq)]
6struct 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
17fn earn(state: State, max_ore_cost: u16, max_clay_cost: u16, max_obs_cost: u16) -> State {
18 State {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected