Skip to content

Commit 5b3b65a

Browse files
committed
add numbers to hints
1 parent e2494a4 commit 5b3b65a

File tree

1 file changed

+7
-7
lines changed
  • exercises/concept/card-games/.docs

1 file changed

+7
-7
lines changed

exercises/concept/card-games/.docs/hints.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
# Hints
22

3-
## Tracking Poker Rounds
3+
## 1. Tracking Poker Rounds
44

55
- The [`list`][list] function returns a list consisting of the arguments it is passed.
66

7-
## Keeping all Rounds in the Same Place
7+
## 2. Keeping all Rounds in the Same Place
88

99
- The [`concat`][concat] function can be used to concatenate two lists together.
1010

11-
## Finding Prior Rounds
11+
## 3. Finding Prior Rounds
1212

1313
- The [`some`][some] function will return the first logically true value in a collection.
1414
- [`boolean`][boolean] is useful in cases where a function returns a value but the tests are expecting a boolean.
1515

16-
## Averaging Card Values
16+
## 4. Averaging Card Values
1717

1818
- Recall basic arithmetic operators such as [`/`][division] and [`+`][addition].
1919
- A collection of numbers can be summed using either [`apply`][apply] or [`reduce`][reduce].
2020
- The [`count`][count] function returns the number of items in a collection.
2121
- The `/` function returns a ratio type when operating on integers. You can use [`double`][double] to convert a ratio to a decimal.
2222

23-
## Alternate Averages
23+
## 5. Alternate Averages
2424

2525
- There are sequence functions to return the [`first`][first] or [`last`] element of a sequential collection.
2626
- To find the middle card you can divide the number of cards by 2, round to the lowest integer with [`int`][int], and retrieve the card at that index using [`nth`][nth].
2727
- Use [`or`][or] to determine if either condition is true.
2828

29-
## More Averaging Techniques
29+
## 6. More Averaging Techniques
3030

3131
- One way of retrieving the cards at even/odd indices would be to [`map`][map] a function using [`nth`][nth] over a [`range`][range], which takes an optional `step` argument.
3232

33-
## Bonus Round Rules
33+
## 7. Bonus Round Rules
3434

3535
- Recall how to use [`if`][if] from the exercise on conditionals.
3636
- You can return all items of a collection except for the last one using [`butlast`][butlast].

0 commit comments

Comments
 (0)