It was literally like that. I had a script of about 310 lines and the main function was like 10-20 lines of code. I had a very nice Setup of objects that handled all functionality possible behaviours independent and so my main function was just receiving a user input from another function and add accordingly which included like 3-4 different scenarios that are being handled in the main function.


No OOP in sight: https://gitlab.com/bss03/grtt/-/blob/f760eb6f0c1f1b171a1a3a114e156f008e4227d0/grtt-machine/test/src/Main.idr
deleted by creator