144th in Gold (Python)
40 line code (+starter)
I ignored simulations, shadows, future states, board scoring and took bussiness-like/economy approach.
Each action is rated on the basis: score = income - cost
The currency is sun point. RoE: 1 game point == 3 sun points
Computing cost is easy and straightforward:
- WAIT: 0,
- SEED: amount of seeds on the board,
- COMPLETE: 4,
- GROW: {0: 1, 1: 3, 2: 7}.get(tree.size) + amount of 3-trees
Computing income is harder:
- WAIT: 0 (and this makes base (red line) as WAIT score is 0 (income - cost)),
- SEED, COMPLETE, GROW: functions
The whole idea is to find efficient functions. The factors to be included: my-trees-in-line, amount-of-my-trees, size-of-a-tree, nutrients, day (time).
There are two more interesting factors to be included:
- FV (future value) of all above,
- lost opportunity cost.
I know that you guys like to write a lot of code (as your are paid for each line
). I stayed with Pareto principle and I put 20% of a possible work to get 80% of the results.
(I should have at least check next round “spooky”)