todo update

This commit is contained in:
2026-04-27 00:04:36 +02:00
parent 97987b649a
commit 5d4f148003
2 changed files with 26 additions and 26 deletions

52
TODO.md
View File

@@ -28,7 +28,7 @@
- [x] **`cow_university`** - [x] **`cow_university`**
- [x] Cow says prime numbers up to `n`. - [x] Cow says prime numbers up to `n`.
- [x] **`smart_cow`** - [x] **`smart_cow`**
- [ ] Cow says a simple arithmetic expression (e.g., "3+11"), eyes show the result. - [x] Cow says a simple arithmetic expression (e.g., "3+11"), eyes show the result.
- [x] **`crazy_cow`** - [x] **`crazy_cow`**
- [x] Create a "crazy arithmetic cow" script with something unusual or complex. - [x] Create a "crazy arithmetic cow" script with something unusual or complex.
@@ -39,13 +39,13 @@
- [x] **`newcow.c`** - [x] **`newcow.c`**
- [x] Create `affiche_vache` function: displays a cow without a speech bubble. - [x] Create `affiche_vache` function: displays a cow without a speech bubble.
- [x] Compile and run. - [x] Compile and run.
- [ ] **Add Features** - [x] **Add Features**
- [x] Support `-e`/ `--eyes` option to change cow's eyes. - [x] Support `-e`/ `--eyes` option to change cow's eyes.
- [ ] Implement other options from `cowsay` manpage. - [x] Implement other options from `cowsay` manpage.
- [ ] **New Feature** - [x] **New Feature**
- [ ] Implement a new feature (e.g., `--tail L` to adjust tail length, or display a herd). - [x] Implement a new feature (e.g., `--tail L` to adjust tail length, or display a herd).
- [x] **`wildcow`** - [x] **`wildcow`**
- [~] Test and explain `update()` and `gotoxy()`. - [-] Test and explain `update()` and `gotoxy()`.
- [x] Create an animated cow using `update()`, `gotoxy()`, and `sleep()`. - [x] Create an animated cow using `update()`, `gotoxy()`, and `sleep()`.
- [x] **`reading_cow`** - [x] **`reading_cow`**
- [x] Cow "reads" a file character by character, displaying each in its mouth before "swallowing". - [x] Cow "reads" a file character by character, displaying each in its mouth before "swallowing".
@@ -54,30 +54,30 @@
## 5. Automata (Cow-Tamagotchi) ## 5. Automata (Cow-Tamagotchi)
- [ ] **Design** - [x] **Design**
- [ ] Draw an automaton for cow's health states: `liferocks`, `lifesucks`, `byebyelife`. - [x] Draw an automaton for cow's health states: `liferocks`, `lifesucks`, `byebyelife`.
- [ ] Assume fixed `fitness`, `digestion`, and `stock`. - [x] Assume fixed `fitness`, `digestion`, and `stock`.
- [ ] **`tamagoshi_cow.c`** - [x] **`tamagoshi_cow.c`**
- [ ] Reuse `affiche_vache` to display cow's health state. - [x] Reuse `affiche_vache` to display cow's health state.
- [ ] Initialize `stock` and `fitness` to 5. - [x] Initialize `stock` and `fitness` to 5.
- [ ] Create `stock_update()` and `fitness_update()` functions. - [x] Create `stock_update()` and `fitness_update()` functions.
- [ ] Main loop: - [x] Main loop:
- [ ] Display cow's state. - [x] Display cow's state.
- [ ] Display `stock`. - [x] Display `stock`.
- [ ] Prompt for `lunchfood`. - [x] Prompt for `lunchfood`.
- [ ] Update `stock` and `fitness`. - [x] Update `stock` and `fitness`.
- [ ] Increment `duree_de_vie`. - [x] Increment `duree_de_vie`.
- [ ] End game at `byebyelife`, display score. - [x] End game at `byebyelife`, display score.
--- ---
## 6. Report ## 6. Report
- [ ] Format: plain text, Markdown, Org, or LaTeX. - [x] Format: plain text, Markdown, Org, or LaTeX.
- [ ] Include: - [x] Include:
- [ ] Source code. - [x] Source code.
- [ ] Execution outputs for relevant test cases. - [x] Execution outputs for relevant test cases.
- [ ] Comments in code and report: justify choices, ideas, challenges. - [x] Comments in code and report: justify choices, ideas, challenges.
- [ ] Highlight original and advanced implementations. - [x] Highlight original and advanced implementations.
--- ---

Binary file not shown.