lowercase colors
This commit is contained in:
parent
bc8572caaa
commit
5a954d1c9a
|
@ -172,7 +172,7 @@ impl GameState {
|
|||
|
||||
let dist = WeightedIndex::new(&weights).unwrap();
|
||||
let picked = choices[dist.sample(&mut self.rng)];
|
||||
|
||||
|
||||
self.bag.add_color(picked, -1)?;
|
||||
factory.add_color(picked, 1)?;
|
||||
}
|
||||
|
@ -771,11 +771,17 @@ impl PatternLine {
|
|||
|
||||
#[derive(Debug, Serialize, Deserialize, Clone, Copy, PartialEq, Eq)]
|
||||
enum Color {
|
||||
#[serde(rename = "start")]
|
||||
Start,
|
||||
#[serde(rename = "blue")]
|
||||
Blue,
|
||||
#[serde(rename = "yellow")]
|
||||
Yellow,
|
||||
#[serde(rename = "red")]
|
||||
Red,
|
||||
#[serde(rename = "black")]
|
||||
Black,
|
||||
#[serde(rename = "white")]
|
||||
White,
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue