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

Rename concept exercises #1464

Merged
merged 26 commits into from
Jul 5, 2021
Merged
Changes from 1 commit
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
ffdc218
Rename booleans -> annalyns_infiltration
angelikatyborska Jul 3, 2021
515496f
Add lasagna blurb
angelikatyborska Jul 3, 2021
371f185
Rename comments -> weather forecast
angelikatyborska Jul 3, 2021
a3d6c97
Rename conditionals -> blackjack
angelikatyborska Jul 3, 2021
6f2c583
Rename constants -> savings-account
angelikatyborska Jul 3, 2021
47c1639
Renamee errors -> deep-thought
angelikatyborska Jul 3, 2021
5c975d6
Fix depe-thought's blurb
angelikatyborska Jul 3, 2021
fb0deca
Rename maps -> gross-store
angelikatyborska Jul 3, 2021
4f92f20
Fix chessboard's prerequisites
angelikatyborska Jul 3, 2021
243b12f
Rename structs -> need-for-speed
angelikatyborska Jul 3, 2021
b53a11f
Rename methods -> elons-toys
angelikatyborska Jul 3, 2021
e31237a
Fix some package names to follow conventions
angelikatyborska Jul 5, 2021
0e55205
Fix remaining package names with underscores
angelikatyborska Jul 5, 2021
4058da6
Rename numbers -> car-factory
angelikatyborska Jul 5, 2021
d6094f4
Fix gross-store config
angelikatyborska Jul 5, 2021
4996ee0
Put active concept exercises in "beta"
angelikatyborska Jul 5, 2021
f3ac17c
Rename slices -> card-tricks
angelikatyborska Jul 5, 2021
b38f837
Rename strings -> party-robot
angelikatyborska Jul 5, 2021
1be2851
Rename strings-package -> logs-logs-logs
angelikatyborska Jul 5, 2021
1d73d01
Rename time -> booking-up-for-beauty
angelikatyborska Jul 5, 2021
3007fbc
Rename zero-values -> zero, zilch, nada
angelikatyborska Jul 5, 2021
110f1d4
Fix booking-up-for-beauty config
angelikatyborska Jul 5, 2021
9473dee
Fix booking_up_for_beauty forked from
angelikatyborska Jul 5, 2021
a3115ad
Rename car-factory -> cars-asemble
angelikatyborska Jul 5, 2021
242f2d7
Update exercises/concept/cars-assemble/.docs/introduction.md
angelikatyborska Jul 5, 2021
0ea1375
Update exercises/concept/cars-assemble/.meta/design.md
angelikatyborska Jul 5, 2021
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
Prev Previous commit
Next Next commit
Rename conditionals -> blackjack
angelikatyborska committed Jul 3, 2021
commit a3d6c97609aa95492dc8a6d585c32e7574ebdf89
25 changes: 25 additions & 0 deletions config.json
Original file line number Diff line number Diff line change
@@ -69,6 +69,21 @@
],
"status": "wip"
ekingery marked this conversation as resolved.
Show resolved Hide resolved
},
{
"slug": "blackjack",
"name": "Blackjack",
"uuid": "628308fc-34e9-46ae-9661-9e0ebceeef34",
"concepts": [
"conditionals-if",
"conditionals-switch"
],
"prerequisites": [
"booleans",
"strings",
"numbers"
],
"status": "active"
},
{
"name": "Chessboard",
"slug": "chessboard",
@@ -1605,6 +1620,16 @@
"name": "Comments",
"slug": "comments",
"uuid": "9ee93eab-b413-442c-b7fb-76bf044eea2d"
},
{
"name": "Conditionals If",
"slug": "conditionals-if",
"uuid": "b3731323-f5bb-4b38-931c-2d734667bf8d"
},
{
"name": "Conditionals Switch",
"slug": "conditionals-switch",
"uuid": "6a4103e0-e7a9-427e-b1bd-716870580c45"
}
],
"key_features": [
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
# Introduction

## Conditionals If

## Conditionals Switch

## Booleans
Conditionals in Go are similar to conditionals in other languages. The underlying type of any conditional operation is the `bool` type, which can have the value of `true` or `false`. Conditionals are often used as flow control mechanisms to check for various conditions.

Go supports the three logical operators `&&` (AND), `||` (OR), and `!` (NOT).
## Conditionals If

Conditionals in Go are similar to conditionals in other languages. The underlying type of any conditional operation is the `bool` type, which can have the value of `true` or `false`. Conditionals are often used as flow control mechanisms to check for various conditions. For checking a particular case an `if` statement can be used, which executes its code if the underlying condition is `true` like this:
For checking a particular case an `if` statement can be used, which executes its code if the underlying condition is `true` like this:

```go
var value string
@@ -30,6 +26,8 @@ if value == "val" {
}
```

## Conditionals Switch

Go also provides a `switch` statement for more advanced scenarios.

```go
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"blurb": "TODO: add blurb for conditionals exercise",
"blurb": "Learn about conditionals by playing Blackjack.",
"authors": [
"andres-zartab"
],
@@ -9,10 +9,10 @@
"forked_from": [],
"files": {
"solution": [
"conditionals.go"
"blackjack.go"
],
"test": [
"conditionals_test.go"
"blackjack_test.go"
],
"exemplar": [
".meta/exemplar.go"
Original file line number Diff line number Diff line change
@@ -19,13 +19,13 @@ The goal of this exercise is to teach the student the basics of the Concept of C

## Concepts

- `booleans`
- `conditionals-if`
- `conditionals-switch`

## Prerequisites

- `basic-strings`
- `booleans`
- `strings`
- `numbers`

## Analyzer
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package _meta
package blackjack

// ParseCard returns the integer value of a card following blackjack ruleset.
func ParseCard(card string) int {
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package conditionals
package blackjack

// ParseCard returns the integer value of a card following blackjack ruleset.
func ParseCard(card string) int {
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package conditionals
package blackjack

import "testing"

3 changes: 3 additions & 0 deletions exercises/concept/blackjack/go.mod
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
module blackjack

go 1.13
3 changes: 0 additions & 3 deletions exercises/concept/conditionals/go.mod

This file was deleted.