gremble
Joined 11 years ago
Joined 11 years ago
I didn't mention programming because I don't see myself being a developer, which I knew would get a lot of attention. I like solving problems with programming, but I don't see myself writing a webapp to collect information for someone to steal.
Computer Science is my secret lover. I initially studied that, but my university focused on producing java devs for industry and didn't do the "science" of computer science. I still work through books when I have time though. About half-way with TAOCP V1.
My reason for asking the question is two-fold: some badly needed reassurance that I have not rolled myself into a hole (I think it was a design flaw that we cannot re-roll characters in real life) and getting a broader perspective on potential places to keep in mind - in terms of extra-curricular skills that I need to gather along the way.
Alright, M1 the first memory "thing", the counter where the result of ADD is stored. M2 is the second memory "thing", the room mentioned in the part quoted. However, you have made me feel rather silly for not realising the very obvious solution to the problem.
Thanks.
The implementation of the counter is IO (the levers that Tim pulls), ADD, SUB (branch if 0), M1 (the counter).. and then M2.
M2 is the counter that holds the monsters as they are subtracted from M1. It is also used as IO for the branch part of SUB (if I understood the article correctly).
Therefore, if I call SUB with M2 = 0, then the counter will malfunction.
I think that the consequence of this is that the given function has a decided halting point.(Branching was taken out). I have no idea how to say this in a better way, sadly my computer science education is tragically lacking.