From afcd52d7a7e12834ebb693cdad8968bd2fbb4155 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:39:23 +0300 Subject: [PATCH 1/8] fix typos main.leo --- auction/src/main.leo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auction/src/main.leo b/auction/src/main.leo index ae94841..79625ad 100644 --- a/auction/src/main.leo +++ b/auction/src/main.leo @@ -49,7 +49,7 @@ program auction.aleo { } } - // Returns ownership of the bid to bidder. + // Returns ownership of the bid to the bidder. // - `bid` : The winning bid. // Requires that the function caller is the auction runner. // Assumes that the function is invoked only after all bids have been resolved. From 8fd0de7503fbef61a11f4ec800976a0b5a845cfa Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:39:44 +0300 Subject: [PATCH 2/8] fix typos README.md --- auction/README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/auction/README.md b/auction/README.md index 740d502..b671fae 100644 --- a/auction/README.md +++ b/auction/README.md @@ -12,7 +12,7 @@ In this model, there are two parties: the auctioneer and the bidders. - **Bidder**: A participant in the auction. - **Auctioneer**: The party responsible for conducting the auction. -We make following assumptions about the auction: +We make the following assumptions about the auction: - The auctioneer is honest. That is, the auctioneer will resolve **all** bids in the order they are received. The auctioneer will not tamper with the bids. - There is no limit to the number of bids. - The auctioneer knows the identity of all bidders, but bidders do not necessarily know the identity of other bidders. @@ -156,4 +156,4 @@ leo run finish "{ }" ``` -Congratulations! You've run a private auction. We recommend going to [aleo.tools](https://aleo.tools) to generate new accounts and trying the same commands with those addresses. \ No newline at end of file +Congratulations! You've run a private auction. We recommend going to [aleo.tools](https://aleo.tools) to generate new accounts and trying the same commands with those addresses. From 6eb9a0d4947a5142dc0fc203f0aad442544f6b2d Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:40:35 +0300 Subject: [PATCH 3/8] fix typos main.leo --- basic_bank/src/main.leo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/basic_bank/src/main.leo b/basic_bank/src/main.leo index 4e7c77c..a95d637 100644 --- a/basic_bank/src/main.leo +++ b/basic_bank/src/main.leo @@ -8,7 +8,7 @@ program basic_bank.aleo { } // An on-chain mapping, storing the amount of tokens owned by each account - // The account is stored as a to preserve user privacy. + // The account is stored as to preserve user privacy. mapping balances: field => u64; // Returns a new Token. From 534627261819ada077171c0c118da519a7973b59 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:42:08 +0300 Subject: [PATCH 4/8] fix typos board.leo --- battleship/imports/board.leo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battleship/imports/board.leo b/battleship/imports/board.leo index 954fd76..b8165e7 100644 --- a/battleship/imports/board.leo +++ b/battleship/imports/board.leo @@ -13,7 +13,7 @@ program board.aleo { hits_and_misses: u64, // The squares that have been played on the opponent's board. played_tiles: u64, - // The ship bitstring representing all ship positions on your own board + // The ship bitstring represents all ship positions on your own board ships: u64, player_1: address, player_2: address, From 0713327d463efb37f0987788a78aeb78aff18a1b Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:43:06 +0300 Subject: [PATCH 5/8] fix typos verify.leo --- battleship/imports/verify.leo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battleship/imports/verify.leo b/battleship/imports/verify.leo index a484c6c..b5ca592 100644 --- a/battleship/imports/verify.leo +++ b/battleship/imports/verify.leo @@ -22,7 +22,7 @@ program verify.aleo { return r11; } - // Returns boolean of whether all the flipped bits in location are "adjacent". Horizontally, this means all flipped bits are + // Returns boolean of whether all the flipped bits in the location are "adjacent". Horizontally, this means all flipped bits are // directly next to each other (111). Vertically, this means all flipped bits are separated by 7 unflipped bits // (10000000100000001). function adjacency_check( From 6b18947ed9c7675960e8aee4bc5caa094f280900 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:44:03 +0300 Subject: [PATCH 6/8] fix typos main.leo --- battleship/src/main.leo | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/battleship/src/main.leo b/battleship/src/main.leo index 27e6ba2..57d014c 100644 --- a/battleship/src/main.leo +++ b/battleship/src/main.leo @@ -71,7 +71,7 @@ program battleship.aleo { } // Returns updated board record. - // Returns new move record owned by opponent. + // Returns new move record owned by the opponent. transition play( // The board record to update. board: board.aleo/board_state.record, @@ -91,7 +91,7 @@ program battleship.aleo { // Play coordinate on own board. Will fail if not a valid move. let hit_or_miss: board.aleo/board_state = board.aleo/update_played_tiles(board, shoot); - // Update own board with result of last shot. + // Update your own board with the result of last shot. let next_board: board.aleo/board_state = board.aleo/update_hits_and_misses(hit_or_miss, move_incoming.prev_hit_or_miss); // Assess whether incoming fire coordinate is a hit. From beac6e8ad4b15ac12b6486e15c99cb43440d3bf2 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:44:44 +0300 Subject: [PATCH 7/8] fix typos README.md --- battleship/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/battleship/README.md b/battleship/README.md index 7b86dd7..4f45170 100644 --- a/battleship/README.md +++ b/battleship/README.md @@ -296,7 +296,7 @@ leo run play "{ ✅ Executed 'battleship.aleo/play' ``` -Player 1 has an updated `board_state.record` - they have a new `played_tiles` bitstring, which corresponds to the fire coordinate they just sent to Player 2. You can see that the `incoming_fire_coordinate` in the `move.record` owned by Player 2 matches exactly the input given by Player 1. Player 2 can now play this move tile and respond with a fire coordinate of their own, and they will also let Player 1 know whether their fire coordinate hit or miss Player 2's ships. +Player 1 has an updated `board_state.record` - they have a new `played_tiles` bitstring, which corresponds to the fire coordinate they just sent to Player 2. You can see that the `incoming_fire_coordinate` in the `move.record` owned by Player 2 matches exactly the input given by Player 1. Player 2 can now play this move tile and respond with a fire coordinate of their own, and they will also let Player 1 know whether their fire coordinate hit or misses Player 2's ships. ## 7: Player 2 Takes The 2nd Turn From f1e58e912d22fe3597b45bde2965c7e248789816 Mon Sep 17 00:00:00 2001 From: Elias Rad <146735585+nnsW3@users.noreply.github.com> Date: Sun, 16 Jun 2024 19:45:24 +0300 Subject: [PATCH 8/8] fix typos README.md --- tictactoe/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tictactoe/README.md b/tictactoe/README.md index 498e483..b50a8f8 100644 --- a/tictactoe/README.md +++ b/tictactoe/README.md @@ -49,7 +49,7 @@ We generate the board, and then the player take turns executing the transition f The inputs to the function are the player number, row position, column position, and the previous state of the board. -The output provided is the new state of the board and an evaluation of who won the game. 0u8 as the evaluation output means a draw if the board is complete or that the game is not yet over. +The output provided is the new state of the board and an evaluation of who won the game. 0u8 as the evaluation output means a draw if the board is complete or if the game is not yet over. ```bash leo run new