Skip to content
/ Room Public

Rust project to simulate the behavior of random movements inside a matrix, using multiple threads to make movements simuntaniously and Arc Mutexes to preserve and share the concurrent state of the matrix.

License

Notifications You must be signed in to change notification settings

andeen171/Room

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

The Room

Rust project to simulate the behavior of random movements inside a matrix, using multiple threads to make movements simuntaniously and Arc Mutexes to preserve and share the concurrent state of the matrix.

Instructions

First make sure you have rustup installed, if you don't have it you can download it from the rust website

The website also have help for any possible problem you can ran into while setting things up

Then clone the repo

git clone https://github.com/andeen171/Room.git
cd room

Now inside the folder you can run the program with:

cargo run

or using parameters

cargo run -- --help
cargo run -- --people 50 --room 20 --doors 5 --seconds 10

Or the recommended way, installing it as a cli, running this command:

cargo install --path .

and then using it anywhere in the system via the 'room' keyword

room --help
room --people 50 --room 20 --doors 5 --seconds 10

About

Rust project to simulate the behavior of random movements inside a matrix, using multiple threads to make movements simuntaniously and Arc Mutexes to preserve and share the concurrent state of the matrix.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages