Pokémon GO recently added a feature that lets you see whether a Pokémon is the tallest, shortest, heaviest, or lightest that you've caught of that particular species. The records are also available in that species' Pokedex entry, but I can only see them for certain Pokémon, and there doesn't seem...
@SaintWacko I think I changed what value cycles started at about 5 times for that one. It kept being simpler to have the one value, and then the next time it needed to use it the other was better
@MBraedley I was going by instructions, incrementing cycle by 2 for addx, and checking in such a way that I got the value before the instruction finished executing
@SaintWacko I didn't have a flag or anything, I just broke it up all the way: increment the cycle once, then do the check, then increment the cycle again, then do the check, then actually change the value of X.
I had been thinking of doing it where if it was an addx instruction it set a flag, then on the next loop checked if the flag was set and if so, changed the register and unset the flag
Also, I ended up just making a generic Graph/Node class and stuck it in a Utils folder
Figure I might as well start creating these reusable util functions where possible
and Node has a property obj, which can be anything. Basically just a lazy way of allowing me to extend Node with solution specific data... basically a generic from C#.
So right now it 's got a BFS function, along with two functions for finding shortest paths on an unweighted graph (Aka one find it between some node Root and some node Goal, and another loops through alist of possible Start nodes finding the shortest).