Skip to content

Commit 6ce2795

Browse files
authored
Synced docs for Bank-Account and Darts. (#3722)
1 parent c5ca9e3 commit 6ce2795

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

exercises/practice/bank-account/.docs/instructions.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
Your task is to implement bank accounts supporting opening/closing, withdrawals, and deposits of money.
44

55
As bank accounts can be accessed in many different ways (internet, mobile phones, automatic charges), your bank software must allow accounts to be safely accessed from multiple threads/processes (terminology depends on your programming language) in parallel.
6-
For example, there may be many deposits and withdrawals occurring in parallel; you need to ensure there is no [race conditions][wikipedia] between when you read the account balance and set the new balance.
6+
For example, there may be many deposits and withdrawals occurring in parallel; you need to ensure there are no [race conditions][wikipedia] between when you read the account balance and set the new balance.
77

88
It should be possible to close an account; operations against a closed account must fail.
99

exercises/practice/darts/.docs/instructions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Instructions
22

3-
Write a function that returns the earned points in a single toss of a Darts game.
3+
Calculate the points scored in a single toss of a Darts game.
44

55
[Darts][darts] is a game where players throw darts at a [target][darts-target].
66

@@ -16,7 +16,7 @@ In our particular instance of the game, the target rewards 4 different amounts o
1616
The outer circle has a radius of 10 units (this is equivalent to the total radius for the entire target), the middle circle a radius of 5 units, and the inner circle a radius of 1.
1717
Of course, they are all centered at the same point — that is, the circles are [concentric][] defined by the coordinates (0, 0).
1818

19-
Write a function that given a point in the target (defined by its [Cartesian coordinates][cartesian-coordinates] `x` and `y`, where `x` and `y` are [real][real-numbers]), returns the correct amount earned by a dart landing at that point.
19+
Given a point in the target (defined by its [Cartesian coordinates][cartesian-coordinates] `x` and `y`, where `x` and `y` are [real][real-numbers]), calculate the correct score earned by a dart landing at that point.
2020

2121
## Credit
2222

exercises/practice/darts/.meta/config.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,6 @@
2424
".meta/example.py"
2525
]
2626
},
27-
"blurb": "Write a function that returns the earned points in a single toss of a Darts game.",
27+
"blurb": "Calculate the points scored in a single toss of a Darts game.",
2828
"source": "Inspired by an exercise created by a professor Della Paolera in Argentina"
2929
}

0 commit comments

Comments
 (0)