2018-12-06 23:20:51 +03:00
|
|
|
## NOTES
|
|
|
|
- I've explained the challenges and the solutions step by step
|
|
|
|
- So, if you get stuck, you can check out the next step without having to look at the entire final solution
|
|
|
|
- You can find the explanations and solutions by clicking on the header links below
|
|
|
|
|
|
|
|
## GET SOCIAL
|
|
|
|
- Click the link below to tweet your solution when you complete: http://bit.ly/GOTWEET-CLOCK
|
|
|
|
- Discuss your solution with other gophers here: http://bit.ly/LEARNGOSLACK
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
## GOALS:
|
|
|
|
|
2019-01-29 19:56:18 +03:00
|
|
|
### 👉 [STEP #1 — Print the Digits](https://github.com/inancgumus/learngo/tree/master/15-project-retro-led-clock/01-printing-the-digits/)
|
2018-12-06 23:20:51 +03:00
|
|
|
- [ ] Define a new placeholder type
|
|
|
|
- [ ] Create the digit arrays from 0 to 9
|
|
|
|
- [ ] Put them into the "digits" array
|
|
|
|
- [ ] Print them side-by-side
|
|
|
|
|
2019-01-29 19:56:18 +03:00
|
|
|
### 👉 [STEP #2 — Print the Clock](https://github.com/inancgumus/learngo/tree/master/15-project-retro-led-clock/02-printing-the-clock/)
|
2018-12-06 23:20:51 +03:00
|
|
|
- [ ] Get the current time
|
|
|
|
- [ ] Create the clock array
|
|
|
|
- [ ] Print the clock
|
|
|
|
- [ ] Add the separators
|
|
|
|
|
2019-01-29 19:56:18 +03:00
|
|
|
### 👉 [STEP #3 — Animate the Clock](https://github.com/inancgumus/learngo/tree/master/15-project-retro-led-clock/03-animating-the-clock/)
|
2018-12-06 23:20:51 +03:00
|
|
|
- [ ] Create an infinite loop to update the clock
|
|
|
|
- [ ] Update the clock every second
|
|
|
|
- [ ] Clear the screen before the infinite loop
|
|
|
|
- [ ] Move the cursor to the top-left corner of the screen before each
|
|
|
|
step of the infinite loop
|
|
|
|
|
2019-01-29 19:56:18 +03:00
|
|
|
### 👉 [BONUS: STEP #4 — Blink the Clock](https://github.com/inancgumus/learngo/tree/master/15-project-retro-led-clock/04-blinking-the-separators/)
|
2018-12-06 23:20:51 +03:00
|
|
|
- [ ] Blink the separators
|
|
|
|
|
2019-01-29 19:56:18 +03:00
|
|
|
### 👉 [FULL ANNOTATED SOLUTION](https://github.com/inancgumus/learngo/tree/master/15-project-retro-led-clock/05-full-annotated-solution/main.go)
|