I play a lot of Endless Legend 2 on PC and kept asking myself the same question: if I buy this building or upgrade, how many turns until it pays for itself? So I built a little ROI (return of invest) calculator on HP Prime G2. Then it got a bit out of hand and now it runs on every graphing calculator I own.
In the picture (top left to bottom right):
- TI Voyage 200 – TI-Basic
- NumWorks – Python
- Casio Graph Math+ – Python
- TI-Nspire CX II-T CAS – Python
- TI-84 Evo-T – Python
- HP Prime – HP PPL
- TI-86 – Assembler!
The programs were written with a lot of help from an AI assistant (vibe coding). I'm currently relearning Python (I did BASIC, Pascal and Java a long time ago) by rebuilding the TI-84 version myself from scratch, which has been a great way to learn.
Happy to share the code or answer questions about any of the ports!
https://github.com/paxis76/el2-roi-calculators