dependencies = [
"bytes",
"futures",
+ "oorandom",
"rand",
"rusqlite",
"serde_json",
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "87f3e037eac156d1775da914196f0f37741a274155e34a0b7e427c35d2a2ecb9"
+[[package]]
+name = "oorandom"
+version = "11.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ab1bc2a289d34bd04a330323ac98a1b4bc82c9d9fcb1e66b63caa84da26b575"
+
[[package]]
name = "opaque-debug"
version = "0.3.0"
rusqlite = "0.27.0"
rand = "0.8.4"
futures = "0.3"
+oorandom = "11.1.3"
--- /dev/null
+../../front_end/src/ai.rs
\ No newline at end of file
--- /dev/null
+../../front_end/src/constants.rs
\ No newline at end of file
--- /dev/null
+../../front_end/src/game_logic.rs
\ No newline at end of file
+mod ai;
+mod constants;
mod db_handler;
+mod game_logic;
mod json_handlers;
+mod random_helper;
+mod state;
const SQLITE_DB_PATH: &str = "./fourLineDropper.db";
--- /dev/null
+use oorandom::Rand32;
+use rand::prelude::*;
+
+pub fn get_seeded_random() -> Result<Rand32, String> {
+ Ok(Rand32::new(thread_rng().gen()))
+}
--- /dev/null
+../../front_end/src/state.rs
\ No newline at end of file