gnfisher / happy_plant

Pairing exercise playing around with ideas from Gary Bernhardt's "Functional Programing, Imperative Shell" (Link: https://www.destroyallsoftware.com/screencasts/catalog/functional-core-imperative-shell)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Happy Plant

A plant needs:

  • To be watered:
    • < 20s over watering (health penalty)
    • every complete segment of 30s under watering (health penalty)

TODO?

  • To be sunned:
    • < 30s over sunning (health penalty)
    • every complete segment of 60s under sunning (health penalty)

ISSUES

  • The way we discount health for > 30 seconds is problematic and leads to bad calculations (not caught by tests, should make test to catch scenario and fix).

A plant dies when its health goes below 0.

A plant grows when its health grows above 10.

A plant matures when it reaches 10".

Game Over:

  • Win reaches 10"
  • Lose it died

Things We May Need

  • IO/Console gem for manipulating/interacting with the user tty
  • ANSI gem for colors
  • Selectable Queue

Questions

About

Pairing exercise playing around with ideas from Gary Bernhardt's "Functional Programing, Imperative Shell" (Link: https://www.destroyallsoftware.com/screencasts/catalog/functional-core-imperative-shell)


Languages

Language:Ruby 100.0%