Skip to content

sambecker/rustwar

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

25 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

War

How long does it take for a game of war to end?

Run simulation

cargo run

Test simulation

cargo test

Simulation output

STARTING SIMULATION (MAX GAME LENGTH: 10000 TURNS)
Games: 100000 [SHUFFLED  ] 233.32 (Indeterminate games: 0.00%)                  
Games: 100000 [SHUFFLED  ] 232.75 (Indeterminate games: 0.00%)                  
Games: 100000 [UNSHUFFLED] 565.19 (Indeterminate games: 8.15%)                  
Games: 100000 [UNSHUFFLED] 563.28 (Indeterminate games: 8.10%)                  
SIMULATION FINISHED (47 SECONDS)

Simulation preview

Console animation

About

Simulation designed to determine the average length (with and without shuffling) of a game of war

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages