Skip to content

Commit a1beb2d

Browse files
Rename Monty-Hall to Monty Hall
1 parent 29a0d47 commit a1beb2d

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
[workspace]
2-
members = ["minesweeper", "cminesweeper", "monty-hall"]
2+
members = ["minesweeper", "cminesweeper", "monty_hall"]

monty-hall/CMakeLists.txt

Lines changed: 0 additions & 3 deletions
This file was deleted.

monty_hall/CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set(MONTY_HALL_SOURCES Cargo.toml src/main.rs)
2+
3+
cargo_add_executable(monty_hall FOLDER Others ${MONTY_HALL_SOURCES})
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[package]
2-
name = "monty-hall"
2+
name = "monty_hall"
33
version = "0.1.0"
44
authors = ["Antal János Benjamin <antal.janos.benjamin@gmail.com>"]
55
edition = "2018"
@@ -9,4 +9,4 @@ rand = "0.3.14"
99

1010

1111
[[bin]]
12-
name = "monty-hall"
12+
name = "monty_hall"

monty-hall/README.md renamed to monty_hall/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
# Monty-Hall simulator
2-
This program is a simple simulation of the [Monty-Hall problem](https://en.wikipedia.org/wiki/Monty_Hall_problem).
2+
This program is a simple simulation of the [Monty Hall problem](https://en.wikipedia.org/wiki/Monty_Hall_problem).
33

44
## Usage
5-
`cargo run num_of_doors num_of_games switch_choice`
5+
`cargo run --release -- <num_of_doors> <num_of_games> <switch_choice>`
66
where the meaning of the parameters are the following:
77
- `num_of_doors`: the number of doors in the simulated game.
88
- `num_of_games`: number of the simulated games.
File renamed without changes.

0 commit comments

Comments
 (0)