721 reputation
37
bio website
location Las Vegas, NV
age 49
visits member for 4 years, 1 month
seen yesterday

I can be reached at lorenpechtel @ hotmail . com


Nov
23
comment Maximum Number of Bends - Snake
@MichaelCelani Those aren't the numbers I understood from your initial post. I do agree yours is slightly more efficient. I can't imagine there's an overall savings counting the complexity of the code, though.
Nov
23
comment Maximum Number of Bends - Snake
@MichaelCelani You are giving 4 bytes/block for the naive approach, 5 bytes/bend for yours. Your approach only wins in the worst case if it's not possible to have a snake of at least 80% bends--and a snake that squirms like I drew will be well at least 99% bends given your board size.
Nov
23
answered Maximum Number of Bends - Snake
Sep
24
awarded  Autobiographer
Aug
19
answered How to load stacking chunks on the fly?
Jul
15
answered How to calculate move while avoiding deep copy
Jun
25
answered Why do most FPS games have a machine gun, shotgun, and sniper rifle?
Apr
13
comment Is host advantage real?
It would depend on how the game is programmed. If commands are executed as soon as they are received the host gets an advantage. If commands work on ticks and both host and remote commands have the same tick delay then there's no host advantage.
Mar
15
answered How do I write a “Connect Four” AI?
Dec
27
answered In a semi-infinite procedural (chunk based) map, how do you handle objects larger than a single chunk?
Dec
24
comment How can I optimize this flood fill algorithm?
I haven't done the math but this feels like O(N^4) to me. You are treating the Contains call as O(N) but it's filled by a O(N^2) loop and thus it might itself be an O(N^2) call.
Nov
23
comment Implementing a homing missile
@Mutoh Real world orbits can be elliptical. I don't think a missile orbit can be, though, as there is no variable attraction with distance.
Nov
21
comment Implementing a homing missile
@Mutoh True, although my gut says that it's in orbit iff the range does not change and the target did not maneuver.
Nov
21
comment Implementing a homing missile
@Mutoh ANY seeker missile can orbit if the situation is just right. Different speeds and turn angles simply change the orbit radius. The only way to avoid this entirely is to have the missile alter it's behavior if it goes into orbit.
Nov
9
awarded  Yearling
Aug
15
comment Can I simplify the inequality “distance(p1, p2) < distance(p1, p3)?”
Yes, my experience is when you're dealing with this sort of stuff a DistanceSquared function is very useful. It's just as clear and avoids the expensive sqrt operation.
Jul
16
answered Gravity and collision detection interfering with player movement
Jul
10
comment Simulating pressure in a grid based liquid simulation
@Byte56 Yes. The pressure in the block should be the weight of water above it or being applied sideways when we have a solid surface somewhere above. Too little pressure on it means there's not enough water above, move water up.
Jul
10
comment Simulating pressure in a grid based liquid simulation
@Byte56 You're misinterpreting what I said. I'm saying the water goes up when the pressure in the block you are analyzing is too high for the pressure being applied from above, not that the pressure from above is too great!
Jul
9
answered Simulating pressure in a grid based liquid simulation