Skip to content

Week-31: challenge self with cigarettes

Petro Koriakin requested to merge points-alcohol-conversion into main

Summary

In order to make more pomodoros each week, I want to establish strong rewards mechanics. Some ages ago Wise Olha advised me to use cigarettes as a reward for focused work. I tried this techniques quite few times already and failed every single attempt.

The problem is that I need 12 packs of cigarettes each week. And I want to have 3 points per pack as an exchange rate. In addition, to make challenge more exciting, I want to establish 7 points per beer bottle as an alternative currency. So then either I work more efficiently or avoid drinking or avoid smoking.

Math is dead simple: 12 x 3 = 36. In case I want few beers it turns into 12 x 3 + 3 x 7 = 57

Implementation details

git commit --allow-empty -m "converted 9 points" logs each conversion git commit --allow-empty -m "invested €80" logs each investment

DataFetcher::ConvertedPoints#parsed_data returns a hash DataFetcher::ConvertedPoints#current_week returns an up-to-date number

./total_scores.rb prints a table with converted summary ./achievements.rb prints a table with converted summary

Some recent stats

% ruby ../predictability-slides/source/lib/total_scores.rb

| week | pomodoros | morning slots | worktime boundaries | total | converted |
|------|-----------|---------------|---------------------|-------|-----------|
| 23   | 11        | 3             | 3                   | 17    | 19        |
| 24   | 8         | 0             | 1                   | 9     | 0         |
| 25   | 15        | 1             | 2                   | 18    | 27        |
| 26   | 5         | 2             | 2                   | 9     | 0         |
| 27   | 10        | 3             | 5                   | 18    | 7         |
| 28   | 9         | 2             | 3                   | 14    | 35        |
| 29   | 11        | 2             | 2                   | 15    | 50        |
| 30   | 14        | 2             | 5                   | 21    | 56        |
| 31   | 15        | 2             | 6                   | 23    | 31        |

Some recent investments

# |--------------------------------------|
# | Achievements: 23                     |
# |--------------------------------------|
# | Worktime boundaries: 6               |
# | Morning slot: 2                      |
# | Pomodoros: 15                        |
# |--------------------------------------|
# | Investments: 80 * 39.75 = 3180.0 UAH |
# |--------------------------------------|
# | Total score: 23                      |
# | Converted: 31                        |
# | Investment: 8 = 31 - 23              |
# |--------------------------------------|
Edited by Petro Koriakin

Merge request reports

Loading