Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed Bool mentions in instructions #356

Merged
merged 1 commit into from
Oct 4, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion concepts/bit-strings/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ If the value of the segment overflows the capacity of the segment's type, it wil

```gleam
<<0b1011:3>> == <<0b0011:3>>
// -> true
// -> True
```

## Prepending and appending
Expand Down
2 changes: 1 addition & 1 deletion concepts/bit-strings/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ If the value of the segment overflows the capacity of the segment's type, it wil

```gleam
<<0b1011:3>> == <<0b0011:3>>
// -> true
// -> True
```

## Prepending and appending
Expand Down
2 changes: 1 addition & 1 deletion concepts/labelled-fields/about.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let a = Rectangle(height: 10.0, width: 20.0)
let b = Rectangle(width: 20.0, height: 10.0)

a == b
// -> true
// -> True
```

When a custom type has only one variant then the `.label` accessor syntax can be used to get the fields of a record.
Expand Down
2 changes: 1 addition & 1 deletion concepts/labelled-fields/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ let a = Rectangle(height: 10.0, width: 20.0)
let b = Rectangle(width: 20.0, height: 10.0)

a == b
// -> true
// -> True
```

When a custom type has only one variant then the `.label` accessor syntax can be used to get the fields of a record.
Expand Down
2 changes: 1 addition & 1 deletion exercises/concept/bandwagoner/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ let a = Rectangle(height: 10.0, width: 20.0)
let b = Rectangle(width: 20.0, height: 10.0)

a == b
// -> true
// -> True
```

When a custom type has only one variant then the `.label` accessor syntax can be used to get the fields of a record.
Expand Down
6 changes: 3 additions & 3 deletions exercises/concept/bird-count/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ bird_count.increment_day_count([4, 0, 2])

## 3. Check if there was a day with no visiting birds

Implement the `bird_count.has_day_without_birds` function. It should take a list of daily bird counts. It should return `true` if there was at least one day when no birds visited the garden, and `false` otherwise.
Implement the `bird_count.has_day_without_birds` function. It should take a list of daily bird counts. It should return `True` if there was at least one day when no birds visited the garden, and `False` otherwise.

```gleam
bird_count.has_day_without_birds([2, 0, 4])
// -> true
// -> True

bird_count.has_day_without_birds([3, 8, 1, 5])
// -> false
// -> False
```

## 4. Calculate the total number of visiting birds
Expand Down
4 changes: 2 additions & 2 deletions exercises/concept/dna-encoding/.docs/introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ If the value of the segment overflows the capacity of the segment's type, it wil

```gleam
<<0b1011:3>> == <<0b0011:3>>
// -> true
// -> True
```

### Prepending and appending
Expand Down Expand Up @@ -67,7 +67,7 @@ Pattern matching can also be done to obtain values from the bit string. You have
```gleam
let assert <<value:4, rest:bit_string>> = <<0b01101001:8>>
value == 0b0110
// -> true
// -> True
```

### Inspecting bit strings
Expand Down
8 changes: 4 additions & 4 deletions exercises/concept/pacman-rules/.docs/instructions.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ You have four rules to translate, all related to the game states.

## 1. Define if Pac-Man eats a ghost

Define the `eat_ghost` function that takes two arguments (_if Pac-Man has a power pellet active_ and _if Pac-Man is touching a ghost_) and returns a boolean value if Pac-Man is able to eat the ghost. The function should return true only if Pac-Man has a power pellet active and is touching a ghost.
Define the `eat_ghost` function that takes two arguments (_if Pac-Man has a power pellet active_ and _if Pac-Man is touching a ghost_) and returns a boolean value if Pac-Man is able to eat the ghost. The function should return `True` only if Pac-Man has a power pellet active and is touching a ghost.

```gleam
eat_ghost(False, True)
Expand All @@ -17,7 +17,7 @@ eat_ghost(False, True)

## 2. Define if Pac-Man scores

Define the `score` function that takes two arguments (_if Pac-Man is touching a power pellet_ and _if Pac-Man is touching a dot_) and returns a boolean value if Pac-Man scored. The function should return true if Pac-Man is touching a power pellet or a dot.
Define the `score` function that takes two arguments (_if Pac-Man is touching a power pellet_ and _if Pac-Man is touching a dot_) and returns a boolean value if Pac-Man scored. The function should return `True` if Pac-Man is touching a power pellet or a dot.

```gleam
score(True, True)
Expand All @@ -26,7 +26,7 @@ score(True, True)

## 3. Define if Pac-Man loses

Define the `lose` function that takes two arguments (_if Pac-Man has a power pellet active_ and _if Pac-Man is touching a ghost_) and returns a boolean value if Pac-Man loses. The function should return true if Pac-Man is touching a ghost and does not have a power pellet active.
Define the `lose` function that takes two arguments (_if Pac-Man has a power pellet active_ and _if Pac-Man is touching a ghost_) and returns a boolean value if Pac-Man loses. The function should return `True` if Pac-Man is touching a ghost and does not have a power pellet active.

```gleam
lose(False, True)
Expand All @@ -35,7 +35,7 @@ lose(False, True)

## 4. Define if Pac-Man wins

Define the `win` function that takes three arguments (_if Pac-Man has eaten all of the dots_, _if Pac-Man has a power pellet active_, and _if Pac-Man is touching a ghost_) and returns a boolean value if Pac-Man wins. The function should return true if Pac-Man has eaten all of the dots and has not lost based on the arguments defined in part 3.
Define the `win` function that takes three arguments (_if Pac-Man has eaten all of the dots_, _if Pac-Man has a power pellet active_, and _if Pac-Man is touching a ghost_) and returns a boolean value if Pac-Man wins. The function should return `True` if Pac-Man has eaten all of the dots and has not lost based on the arguments defined in part 3.

```gleam
win(False, True, False)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ count_place_treasures(place, treasures)

## 4. Special Places

Implement the `special_case_swap_possible` function, which takes a treasure (such as `#("Amethyst Octopus", #(1, "F"))`) and a Place (such as `#("Seaside Cottages", #("C", 1))`), and returns true for the following combinations:
Implement the `special_case_swap_possible` function, which takes a treasure (such as `#("Amethyst Octopus", #(1, "F"))`) and a Place (such as `#("Seaside Cottages", #("C", 1))`), and returns `True` for the following combinations:

- The Brass Spyglass can be swapped for any other treasure at the Abandoned Lighthouse.
- The Amethyst Octopus can be swapped for the Crystal Crab or the Glass Starfish at the Stormy Breakwater.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,5 +60,5 @@ Implement the `exciting_list` function to check if a list of languages is exciti

```gleam
exciting_list(["Lua", "Gleam"])
// -> true
// -> True
```
2 changes: 1 addition & 1 deletion exercises/practice/reverse-string/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ description = "a sentence with punctuation"
description = "a palindrome"

[b9e7dec1-c6df-40bd-9fa3-cd7ded010c4c]
description = "an even-sized word"
description = "an even-sized word"