ah I'm stupid generate groves right you idiot
This commit is contained in:
parent
0004324b4c
commit
04e94c297f
2 changed files with 10 additions and 1 deletions
|
|
@ -117,7 +117,11 @@ impl<T> Harvest<T> where
|
|||
T: Harvestable + Debug + Clone + Display
|
||||
{
|
||||
pub fn new(color_weights: &ColorWeights, config: &Config) -> Harvest<T> {
|
||||
let rolled_fields: usize = rand::distributions::Uniform::new(3, 6).sample(&mut thread_rng()) * 2;
|
||||
let rolled_fields: usize = (
|
||||
3 +
|
||||
rand::thread_rng().gen_range(0..=1) +
|
||||
rand::thread_rng().gen_range(0..=1)
|
||||
) * 2;
|
||||
|
||||
let mut fields: Vec<T> = Vec::new();
|
||||
|
||||
|
|
|
|||
|
|
@ -26,6 +26,9 @@
|
|||
else rust.stable.latest.default;
|
||||
})
|
||||
];
|
||||
|
||||
python-packages = ps: with ps; [numpy];
|
||||
|
||||
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
||||
forEachSupportedSystem = f:
|
||||
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||
|
|
@ -36,6 +39,8 @@
|
|||
devShells = forEachSupportedSystem ({pkgs}: {
|
||||
default = pkgs.mkShell {
|
||||
packages = with pkgs; [
|
||||
(python3.withPackages python-packages)
|
||||
|
||||
rustToolchain
|
||||
openssl
|
||||
pkg-config
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue