|
hmm...
#378699 - 09/27/18 08:22 PM
|
|
|
[spoilers] [7 Billion Humans]
m1=10^y m2=m1*10 m3=x m4=m3/m2 m4=m4*m2 m4=m3-m4 m4=m4/m1
Yes, I think that will give me the y digit of x using only 4 memory registers and not knowing before runtime what the variables are. OK, I can get back to the game.
Edited by TriggerFin (09/27/18 09:21 PM)
|
|
|
|
Re: hmm...
[Re: TriggerFin]
#378707 - 09/28/18 03:06 AM
|
|
|
How is the game? I'm waiting for the Switch version before buying it.
|
|
|
|
Re: hmm...
[Re: Llaffer]
#378708 - 09/28/18 05:25 AM
|
|
|
> How is the game? I'm waiting for the Switch version before buying it.
I preferred Human Resource Machine, its predecessor. 7 Billion Humans is slightly longer, and I still have 11 challenges to complete to 100% it, though I completed all the levels shortly after working out this series of steps for one of the last set of levels. I remember doing some stuff with prime factors in HRM, and that isn't a thing in this parallel-processing based game. It DOES still teach you bad programming practices though, so there's that.
I did enjoy it, though quite a lot of playing it has consisted of NOT playing it while my mind works out solutions to the problems it poses at its own pace. I was watching Netflix when this came to me, and it relies on my having realized that the math in it is all integers just two levels prior, the first time it mattered.
(For the problem solved here, my current solution is both too long by several lines and too slow by about half a minute.)
|
|
|