move: arrays retro clock and slices
This commit is contained in:
@ -11,26 +11,26 @@
|
|||||||
|
|
||||||
## GOALS:
|
## GOALS:
|
||||||
|
|
||||||
### 👉 [STEP #1 — Print the Digits](https://github.com/inancgumus/learngo/tree/master/15-arrays-project-clock/01-printing-the-digits/)
|
### 👉 [STEP #1 — Print the Digits](https://github.com/inancgumus/learngo/tree/master/14-arrays/13-project-clock/01-printing-the-digits/)
|
||||||
- [ ] Define a new placeholder type
|
- [ ] Define a new placeholder type
|
||||||
- [ ] Create the digit arrays from 0 to 9
|
- [ ] Create the digit arrays from 0 to 9
|
||||||
- [ ] Put them into the "digits" array
|
- [ ] Put them into the "digits" array
|
||||||
- [ ] Print them side-by-side
|
- [ ] Print them side-by-side
|
||||||
|
|
||||||
### 👉 [STEP #2 — Print the Clock](https://github.com/inancgumus/learngo/tree/master/15-arrays-project-clock/02-printing-the-clock/)
|
### 👉 [STEP #2 — Print the Clock](https://github.com/inancgumus/learngo/tree/master/14-arrays/13-project-clock/02-printing-the-clock/)
|
||||||
- [ ] Get the current time
|
- [ ] Get the current time
|
||||||
- [ ] Create the clock array
|
- [ ] Create the clock array
|
||||||
- [ ] Print the clock
|
- [ ] Print the clock
|
||||||
- [ ] Add the separators
|
- [ ] Add the separators
|
||||||
|
|
||||||
### 👉 [STEP #3 — Animate the Clock](https://github.com/inancgumus/learngo/tree/master/15-arrays-project-clock/03-animating-the-clock/)
|
### 👉 [STEP #3 — Animate the Clock](https://github.com/inancgumus/learngo/tree/master/14-arrays/13-project-clock/03-animating-the-clock/)
|
||||||
- [ ] Create an infinite loop to update the clock
|
- [ ] Create an infinite loop to update the clock
|
||||||
- [ ] Update the clock every second
|
- [ ] Update the clock every second
|
||||||
- [ ] Clear the screen before the infinite loop
|
- [ ] Clear the screen before the infinite loop
|
||||||
- [ ] Move the cursor to the top-left corner of the screen before each
|
- [ ] Move the cursor to the top-left corner of the screen before each
|
||||||
step of the infinite loop
|
step of the infinite loop
|
||||||
|
|
||||||
### 👉 [BONUS: STEP #4 — Blink the Clock](https://github.com/inancgumus/learngo/tree/master/15-arrays-project-clock/04-blinking-the-separators/)
|
### 👉 [BONUS: STEP #4 — Blink the Clock](https://github.com/inancgumus/learngo/tree/master/14-arrays/13-project-clock/04-blinking-the-separators/)
|
||||||
- [ ] Blink the separators
|
- [ ] Blink the separators
|
||||||
|
|
||||||
### 👉 [FULL ANNOTATED SOLUTION](https://github.com/inancgumus/learngo/tree/master/15-arrays-project-clock/05-full-annotated-solution/main.go)
|
### 👉 [FULL ANNOTATED SOLUTION](https://github.com/inancgumus/learngo/tree/master/14-arrays/13-project-clock/05-full-annotated-solution/main.go)
|
@ -2,20 +2,20 @@
|
|||||||
|
|
||||||
These exercises will reinforce your knowledge of manipulating arrays. You will prove yourself that you can write easy to maintain Go programs.
|
These exercises will reinforce your knowledge of manipulating arrays. You will prove yourself that you can write easy to maintain Go programs.
|
||||||
|
|
||||||
1. **[Refactor](https://github.com/inancgumus/learngo/tree/master/15-arrays-project-clock/exercises/01-refactor)**
|
1. **[Refactor](https://github.com/inancgumus/learngo/tree/master/14-arrays/13-project-clock/exercises/01-refactor)**
|
||||||
|
|
||||||
In this exercise, you will refactor the project to multiple files by moving
|
In this exercise, you will refactor the project to multiple files by moving
|
||||||
all the placeholders. This will make the project easy to maintain down the road.
|
all the placeholders. This will make the project easy to maintain down the road.
|
||||||
|
|
||||||
2. **[Set an Alarm](https://github.com/inancgumus/learngo/tree/master/15-arrays-project-clock/exercises/02-alarm)**
|
2. **[Set an Alarm](https://github.com/inancgumus/learngo/tree/master/14-arrays/13-project-clock/exercises/02-alarm)**
|
||||||
|
|
||||||
You will print " ALARM! " every 10 seconds.
|
You will print " ALARM! " every 10 seconds.
|
||||||
|
|
||||||
3. **[Split Second](https://github.com/inancgumus/learngo/tree/master/15-arrays-project-clock/exercises/03-split-second)**
|
3. **[Split Second](https://github.com/inancgumus/learngo/tree/master/14-arrays/13-project-clock/exercises/03-split-second)**
|
||||||
|
|
||||||
You will display the split second in the clock, you will need to update the
|
You will display the split second in the clock, you will need to update the
|
||||||
clock every 1/10th of a second instead of every second.
|
clock every 1/10th of a second instead of every second.
|
||||||
|
|
||||||
4. **[Ticker](https://github.com/inancgumus/learngo/tree/master/15-arrays-project-clock/exercises/04-ticker)**
|
4. **[Ticker](https://github.com/inancgumus/learngo/tree/master/14-arrays/13-project-clock/exercises/04-ticker)**
|
||||||
|
|
||||||
This is an HARD EXERCISE. You will slide the clock animation from right-to-left. After this exercise, you will truly feel that you've mastered everything you've learned so far.
|
This is an HARD EXERCISE. You will slide the clock animation from right-to-left. After this exercise, you will truly feel that you've mastered everything you've learned so far.
|
@ -2,14 +2,14 @@
|
|||||||
|
|
||||||
## Exercises Level I - Basics — Warm-Up
|
## Exercises Level I - Basics — Warm-Up
|
||||||
|
|
||||||
1. **[Declare nil slices](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/01-declare-nil)**
|
1. **[Declare nil slices](https://github.com/inancgumus/learngo/tree/master/15-slices/exercises/01-declare-nil)**
|
||||||
|
|
||||||
2. **[Assign empty slices](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/02-empty)**
|
2. **[Assign empty slices](https://github.com/inancgumus/learngo/tree/master/15-slices/exercises/02-empty)**
|
||||||
|
|
||||||
3. **[Assign slice literals](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/03-slice-literal)**
|
3. **[Assign slice literals](https://github.com/inancgumus/learngo/tree/master/15-slices/exercises/03-slice-literal)**
|
||||||
|
|
||||||
4. **[Declare the arrays as slices](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/04-declare-arrays-as-slices)**
|
4. **[Declare the arrays as slices](https://github.com/inancgumus/learngo/tree/master/15-slices/exercises/04-declare-arrays-as-slices)**
|
||||||
|
|
||||||
5. **[Fix the Problems](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/05-fix-the-problems)**
|
5. **[Fix the Problems](https://github.com/inancgumus/learngo/tree/master/15-slices/exercises/05-fix-the-problems)**
|
||||||
|
|
||||||
6. **[Compare the slices](https://github.com/inancgumus/learngo/tree/master/16-slices/exercises/06-compare-the-slices)**
|
6. **[Compare the slices](https://github.com/inancgumus/learngo/tree/master/15-slices/exercises/06-compare-the-slices)**
|
Reference in New Issue
Block a user