Live location tracking and playback for the game "manhunt"

Fix Format

bwc9876.dev b8fd9798 2edc772a

verified
+39 -37
+36 -36
frontend/package.json
··· 1 1 { 2 - "name": "manhunt-app", 3 - "private": true, 4 - "version": "0.1.0", 5 - "type": "module", 6 - "scripts": { 7 - "dev": "vite", 8 - "build": "tsc && vite build", 9 - "preview": "vite preview", 10 - "lint": "tsc && eslint --cache" 11 - }, 12 - "dependencies": { 13 - "@tauri-apps/api": "^2", 14 - "@tauri-apps/plugin-geolocation": "^2", 15 - "@tauri-apps/plugin-log": "^2", 16 - "@tauri-apps/plugin-notification": "^2", 17 - "@tauri-apps/plugin-opener": "^2", 18 - "@tauri-apps/plugin-dialog": "^2", 19 - "react": "^19", 20 - "react-dom": "^19", 21 - "swr": "^2" 22 - }, 23 - "devDependencies": { 24 - "@eslint/js": "^9.39.2", 25 - "@types/node": "^25.2.3", 26 - "@types/react": "^19", 27 - "@types/react-dom": "^19", 28 - "@vitejs/plugin-react": "^5.1.4", 29 - "eslint": "^9.39.2", 30 - "eslint-plugin-react": "^7", 31 - "eslint-plugin-react-hooks": "^5.2.0", 32 - "globals": "^17.3.0", 33 - "prettier": "^3", 34 - "typescript": "^5", 35 - "typescript-eslint": "^8", 36 - "vite": "^7" 37 - } 2 + "name": "manhunt-app", 3 + "private": true, 4 + "version": "0.1.0", 5 + "type": "module", 6 + "scripts": { 7 + "dev": "vite", 8 + "build": "tsc && vite build", 9 + "preview": "vite preview", 10 + "lint": "tsc && eslint --cache" 11 + }, 12 + "dependencies": { 13 + "@tauri-apps/api": "^2", 14 + "@tauri-apps/plugin-geolocation": "^2", 15 + "@tauri-apps/plugin-log": "^2", 16 + "@tauri-apps/plugin-notification": "^2", 17 + "@tauri-apps/plugin-opener": "^2", 18 + "@tauri-apps/plugin-dialog": "^2", 19 + "react": "^19", 20 + "react-dom": "^19", 21 + "swr": "^2" 22 + }, 23 + "devDependencies": { 24 + "@eslint/js": "^9.39.2", 25 + "@types/node": "^25.2.3", 26 + "@types/react": "^19", 27 + "@types/react-dom": "^19", 28 + "@vitejs/plugin-react": "^5.1.4", 29 + "eslint": "^9.39.2", 30 + "eslint-plugin-react": "^7", 31 + "eslint-plugin-react-hooks": "^5.2.0", 32 + "globals": "^17.3.0", 33 + "prettier": "^3", 34 + "typescript": "^5", 35 + "typescript-eslint": "^8", 36 + "vite": "^7" 37 + } 38 38 }
+3 -1
manhunt-logic/src/game_state.rs
··· 2 2 3 3 use chrono::Utc; 4 4 use rand::{ 5 - RngExt, SeedableRng, distr::{Bernoulli, Distribution}, seq::{IndexedRandom, IteratorRandom} 5 + RngExt, SeedableRng, 6 + distr::{Bernoulli, Distribution}, 7 + seq::{IndexedRandom, IteratorRandom}, 6 8 }; 7 9 use rand_chacha::ChaCha20Rng; 8 10 use serde::{Deserialize, Serialize};