From 87a904c9ae672e74663ac2d08b204987c6594edc Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:54:29 +0300 Subject: [PATCH 1/7] fix typos main.leo --- hangman/src/main.leo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hangman/src/main.leo b/hangman/src/main.leo index 6e68e5e..b93b1d5 100644 --- a/hangman/src/main.leo +++ b/hangman/src/main.leo @@ -24,7 +24,7 @@ circuit Point { //! 111. For example, can you instantiate a point p, and then negate it. //! You will need to use field elements, such as 0field, 1field, 2field, ...: - //! When defining a struct such as point, we do `Point{x_1: something, x_2: something}' + //! When defining a struct such as a point, we do `Point{x_1: something, x_2: something}' // let p = Point{x: 1, y: 1}; // let minus_p = p.ec_negate(); // console.log("the coordinates are {} and {}", minus_p.x, minus_p.y); @@ -241,4 +241,4 @@ victory: bool = {};", game.guesses_left, game.victory ); -} \ No newline at end of file +} From f93cc38e4daaa9b0443630693d761d18ac41272a Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:54:45 +0300 Subject: [PATCH 2/7] fix typos question_1.leo --- hangman/src/question_1.leo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hangman/src/question_1.leo b/hangman/src/question_1.leo index a48ab42..3e30517 100644 --- a/hangman/src/question_1.leo +++ b/hangman/src/question_1.leo @@ -26,7 +26,7 @@ circuit Point { function main() { //! 111. For example, can you instantiate a point p, and then negate it. //! You will need to use field elements, such as 0field, 1field, 2field, ...: - //! When defining a struct such as point, we do `Point{x_1: something, x_2: something}' + //! When defining a struct such as a point, we do `Point{x_1: something, x_2: something}' let p = Point{x: 1, y: 1}; let minus_p = p.ec_negate(); console.log("the coordinates are {} and {}", minus_p.x, minus_p.y); From 62fde444ec0234eb2a522ec6206fcdf3f3a0f814 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:54:59 +0300 Subject: [PATCH 3/7] fix typos question_2.leo --- hangman/src/question_2.leo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hangman/src/question_2.leo b/hangman/src/question_2.leo index 2c1ce82..9f129e5 100644 --- a/hangman/src/question_2.leo +++ b/hangman/src/question_2.leo @@ -24,7 +24,7 @@ circuit Point { //! 111. For example, can you instantiate a point p, and then negate it. //! You will need to use field elements, such as 0field, 1field, 2field, ...: - //! When defining a struct such as point, we do `Point{x_1: something, x_2: something}' + //! When defining a struct such as a point, we do `Point{x_1: something, x_2: something}' // let p = Point{x: 1, y: 1}; // let minus_p = p.ec_negate(); // console.log("the coordinates are {} and {}", minus_p.x, minus_p.y); @@ -82,4 +82,4 @@ circuit Hangman { // The 'hangman' main function, which selectively creates a new game or runs the `guess_letter` function. function main() { let new_game = Hangman {}; -} \ No newline at end of file +} From fc1287b02e2a5008acf5ce955330a05adfc5d492 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:55:44 +0300 Subject: [PATCH 4/7] fix typos question_4.leo --- hangman/src/question_4.leo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hangman/src/question_4.leo b/hangman/src/question_4.leo index 23b3450..96fa983 100644 --- a/hangman/src/question_4.leo +++ b/hangman/src/question_4.leo @@ -88,7 +88,7 @@ circuit Hangman { // The `zero` group element for Edwards BLS12 const digest: Point = Point { x: 0field, y: 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177field }; - // x and y coordiantes corresponding to the `one` group element. + // x and y coordinates corresponding to the `one` group element. const x: field = 7810607721416582242904415504650443951498042435501746664987470571546413371306field; const y: field = 1867362672570137759132108893390349941423731440336755218616442213142473202417field; @@ -128,4 +128,4 @@ function main() { const word_length = 6u32; let new_game = Hangman::new_game(word, word_length); console.log("the game says {}", new_game); -} \ No newline at end of file +} From d02ed807d04794d79a67a340591235fd5bfc6b79 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:56:03 +0300 Subject: [PATCH 5/7] fix typos question_5.leo --- hangman/src/question_5.leo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hangman/src/question_5.leo b/hangman/src/question_5.leo index 8fbe1ee..bb0ea6e 100644 --- a/hangman/src/question_5.leo +++ b/hangman/src/question_5.leo @@ -88,7 +88,7 @@ circuit Hangman { // The `zero` group element for Edwards BLS12 const digest: Point = Point { x: 0field, y: 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177field }; - // x and y coordiantes corresponding to the `one` group element. + // x and y coordinates corresponding to the `one` group element. const x: field = 7810607721416582242904415504650443951498042435501746664987470571546413371306field; const y: field = 1867362672570137759132108893390349941423731440336755218616442213142473202417field; @@ -132,4 +132,4 @@ function main() { let word = "aleons______________"; const word_length = 6u32; let new_game = Hangman::new_game(word, word_length); -} \ No newline at end of file +} From c999744cac2196183f82b0290dc51fb681bcf262 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:56:21 +0300 Subject: [PATCH 6/7] fix typos question_6.leo --- hangman/src/question_6.leo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hangman/src/question_6.leo b/hangman/src/question_6.leo index d771de1..319c1c5 100644 --- a/hangman/src/question_6.leo +++ b/hangman/src/question_6.leo @@ -88,7 +88,7 @@ circuit Hangman { // The `zero` group element for Edwards BLS12 const digest: Point = Point { x: 0field, y: 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177field }; - // x and y coordiantes corresponding to the `one` group element. + // x and y coordinates corresponding to the `one` group element. const x: field = 7810607721416582242904415504650443951498042435501746664987470571546413371306field; const y: field = 1867362672570137759132108893390349941423731440336755218616442213142473202417field; @@ -264,4 +264,4 @@ victory: bool = {};", // r2: [char; 20] = ['_'; 20]; // r3: [char; 10] = ['_'; 10]; // r4: u32 = 10; -// r5: bool = false; \ No newline at end of file +// r5: bool = false; From 58b42b23a3c659833fad3a95104dbfb55bcf7c96 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Tue, 18 Jun 2024 12:56:43 +0300 Subject: [PATCH 7/7] fix typos workshop_exercise.leo --- hangman/src/workshop_exercise.leo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hangman/src/workshop_exercise.leo b/hangman/src/workshop_exercise.leo index b056a68..aeb9de6 100644 --- a/hangman/src/workshop_exercise.leo +++ b/hangman/src/workshop_exercise.leo @@ -91,7 +91,7 @@ circuit Hangman { // The `zero` group element for Edwards BLS12 const digest: Point = Point { x: 0field, y: 258664426012969094010652733694893533536393512754914660539884262666720468348340822774968888139573360124440321458177field }; - // x and y coordiantes corresponding to the `one` group element. + // x and y coordinates corresponding to the `one` group element. const x: field = 7810607721416582242904415504650443951498042435501746664987470571546413371306field; const y: field = 1867362672570137759132108893390349941423731440336755218616442213142473202417field; @@ -221,4 +221,4 @@ victory: bool = {};", game.guesses_left, game.victory ); -} \ No newline at end of file +}