Skip to content

Commit

Permalink
Add dining philosophers
Browse files Browse the repository at this point in the history
  • Loading branch information
nxsaken committed Jan 4, 2024
1 parent 4b53bd9 commit cb22a10
Show file tree
Hide file tree
Showing 4 changed files with 428 additions and 0 deletions.
1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,6 @@ bevy_utils = { version = "0.12" }

[dev-dependencies]
bevy = { version = "0.12" }
bevy_ascii_terminal = { version = "0.14.0" }

[features]
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,6 @@ how I can improve it with time and usage.
## Examples

Check out [this example](examples/simple.rs) demonstrating a simple Petri net in action, as well as [the tests here](src/net.rs) for more Petri net instances.

### More examples:
- [Dining philosophers](examples/dining_philosophers.rs) (demonstrates competing for shared resources, and a deadlock situation)
Loading

0 comments on commit cb22a10

Please sign in to comment.