Skip to content

Concurrent Rust CLI horse run betting utilizing atomic reference counting mutex locks and multithreading

Notifications You must be signed in to change notification settings

PrideInt/go-horsey-go-run

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Go Horsey, Go Run!

Concurrent Rust CLI horse run. Mini Rust game for my programming languages class.

  • created by Pride

A mini game that involves Rust concurrency and multithreading to simulate horse racing gambles. Uses Arc and Mutex<bool> to manage data racing of the resource that announces the winner. Uses rand to do some RNG of horse paces to update their position in each thread.

Images

Screenshot 2023-11-13 133605

Screenshot 2023-11-13 133800

Dependencies / Crates

  • rand

https://crates.io/crates/rand

About

Concurrent Rust CLI horse run betting utilizing atomic reference counting mutex locks and multithreading

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages