fix(algorithms): fix the admonitions in Karel

Signed-off-by: Matej Focko <mfocko@redhat.com>
This commit is contained in:
Matej Focko 2023-11-24 18:27:32 +01:00
parent 2fb4765b1f
commit 2ff21c708c
Signed by: mfocko
GPG key ID: 7C47D46246790496

View file

@ -79,12 +79,15 @@ You can see an example of such map here:
As a first step write down any ideas and things that you have noticed or came to
your mind. Ideally:
- Write down a nested list of the problems, e.g.
1. Write down a nested list of the problems
2. Write down list of problems that can happen
3. Write down **anything** you consider important to solving the problem
:::info Example
:::tip Example
Problem: I want to find out whether the display on smartphone should rotate.
**Problem**: I want to find out whether the display on smartphone should rotate.
- nested list of problems
- Check if display has been rotated
- Read data from some sensor
- From what sensor
@ -92,25 +95,11 @@ your mind. Ideally:
- How do I communicate with the sensor?
- What is the meaning of the data that I got?
- How can I process it?
:::
- Write down list of problems that can happen, e.g.
:::info Example continued
Following the same problem.
- any problems that can happen
- What if the sensor doesn't work?
- What if the data doesn't conform to the specification?
- What if my formulas are wrong?
:::
- Write down **anything** you consider important to solving the problem, e.g.
:::info Example continued once again
- anything important
- I could probably use gyroscope.
- I should probably look up the datasheet for that module.
- I could write some tests to verify that my computations are correct.
@ -155,7 +144,9 @@ the ZIP-file, you can there:
- `skeleton.py` - skeleton for your solution, needs to be put in the same directory
as `karel_tk.py` and takes path to the world as a first argument, example usage:
```
$ python3 skeleton.py stairs.kw
```
- of course, this file can be renamed ;)