-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathquick_test2.py
More file actions
28 lines (21 loc) · 899 Bytes
/
quick_test2.py
File metadata and controls
28 lines (21 loc) · 899 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env python3
"""Quick test of the Criminal Behavior Simulation"""
from core.simulation import CriminalBehaviorSimulation
from config.settings import SIMULATION_CONFIG
# Run shorter simulation
config = SIMULATION_CONFIG.copy()
config['simulation_steps'] = 50 # Shorter run
print('Running short Criminal Behavior Simulation...')
simulation = CriminalBehaviorSimulation(config=config)
print(f'Grid: {simulation.width}x{simulation.height}')
print(f'Agents: {simulation.num_criminals} criminals, {simulation.num_victims} victims, {simulation.num_law_enforcement} law enforcement')
# Run simulation
for step in range(50):
simulation.step()
# Get results
results = simulation.get_results()
print('\nAvailable result keys:', list(results.keys()))
print('\nFinal Results:')
for key, value in results.items():
print(f' {key}: {value}')
print('\nSimulation completed successfully!')