Skip to content

Commit

Permalink
feat(exercises): made some changes to ex00, started work on ex01
Browse files Browse the repository at this point in the history
  • Loading branch information
Trantorian1 committed Jul 26, 2024
1 parent cdf3d37 commit 2fc763e
Show file tree
Hide file tree
Showing 5 changed files with 171 additions and 2 deletions.
4 changes: 4 additions & 0 deletions activities/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion activities/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[workspace]
resolver = "2"
members = ["ex00"]
members = ["ex00", "ex01"]

[workspace.dependencies]
log = "0.4.22"
Expand Down
2 changes: 1 addition & 1 deletion activities/ex00/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl Todo {
// >
// > Or if you want debug output
// >
// > `RUST_LOG=info cargo test -- --nocapture`
// > `RUST_LOG=info cargo test`
// >
// > Run this now to make sure this activity compile on you machine! You should
// > be greeted with the output:
Expand Down
6 changes: 6 additions & 0 deletions activities/ex01/Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[package]
name = "ex01"
version = "0.1.0"
edition = "2021"

[dependencies]
159 changes: 159 additions & 0 deletions activities/ex01/src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,159 @@
#[allow(dead_code)]
// TODO:
// > What is the main purpose of a Blockchain technologies?
// >
// > - a) To create digital currencies.
// > - b) To achieve mathematical consensus in a narrative.
// > - c) To replace traditional banking systems.
// >
fn question_0() -> char {
todo!()
}

#[allow(dead_code)]
// TODO:
// > In the context of the high school marble problem, what does "consensus" mean?
// >
// >
// > - a) When players finish the game.
// > - b) When multiple parties come to an agreement on the state of the game.
// > - c) When one player convinces others to give up their marbles.
// >
fn question_1() -> char {
todo!()
}

#[allow(dead_code)]
// TODO:
// >
// >
// >
// > - a)
// > - b)
// > - c)
// >
fn question_2() -> char {
todo!()
}

#[allow(dead_code)]
// TODO:
// >
// >
// >
// > - a)
// > - b)
// > - c)
// >
fn question_3() -> char {
todo!()
}

#[allow(dead_code)]
// TODO:
// >
// >
// >
// > - a)
// > - b)
// > - c)
// >
fn question_4() -> char {
todo!()
}

#[allow(dead_code)]
// TODO:
// >
// >
// >
// > - a)
// > - b)
// > - c)
// >
fn question_5() -> char {
todo!()
}

#[allow(dead_code)]
// TODO:
// >
// >
// >
// > - a)
// > - b)
// > - c)
// >
fn question_6() -> char {
todo!()
}

#[allow(dead_code)]
// TODO:
// >
// >
// >
// > - a)
// > - b)
// > - c)
// >
fn question_7() -> char {
todo!()
}

#[allow(dead_code)]
// TODO:
// >
// >
// >
// > - a)
// > - b)
// > - c)
// >
fn question_8() -> char {
todo!()
}

#[allow(dead_code)]
// TODO:
// >
// >
// >
// > - a)
// > - b)
// > - c)
// >
fn question_9() -> char {
todo!()
}

#[allow(dead_code)]
// TODO:
// >
// >
// >
// > - a)
// > - b)
// > - c)
// >
fn question_10() -> char {
todo!()
}

#[allow(dead_code)]
// TODO:
// >
// >
// >
// > - a)
// > - b)
// > - c)
// >
fn question_11() -> char {
todo!()
}

#[cfg(test)]
mod tests {
use super::*;
}

0 comments on commit 2fc763e

Please sign in to comment.