2,962 reputation
411
bio website boardspace.net
location
age
visits member for 3 years, 1 month
seen yesterday

I develop games for fun.


Aug
13
answered Debugging memory corruption
Aug
9
awarded  Yearling
Jul
22
comment When I test out the difference in time between shifting and multiplying in C, there is no difference. Why?
A classic compiler optimizer bug is to convert divides into right shifts, which works for positive dividends but is off by 1 for negative.
Jul
21
awarded  Nice Answer
Jul
21
comment When I test out the difference in time between shifting and multiplying in C, there is no difference. Why?
Always use the operation that is semantically correct. If you were manipulating bit masks, or positioning small integers within larger integers, shift is the appropriate operation.
Jul
21
answered When I test out the difference in time between shifting and multiplying in C, there is no difference. Why?
Jul
17
answered What's the shortest generating one-way hash algorithm?
Jun
14
answered Looking to simulate the rolling of a ball around a roulette wheel, while the resulting number is already known
May
2
revised AI development, variation on the horizon effect
added 323 characters in body
Apr
30
comment AI development, variation on the horizon effect
gamedev seems more oriented to video-game type questions.
Apr
30
revised AI development, variation on the horizon effect
edited body
Apr
30
asked AI development, variation on the horizon effect
Feb
17
comment Interpreter or virtual machine that does not execute bytecode
One of my earliest memories of "they did what??" was with a pdp-8 basic, where the parser was clearly only using first letter plus length of keywords. print n could be written as plod on.
Dec
27
comment Minimax in a bayesian game with multiple players who do not play in order
I usually cast my evaluation function as something which considers the state of only one player. In two player games, the evaluation of a position is e(player1)-e(player2). In multiplayer games, evaluation is e(player1)-max(e(player2),e(player3)). Propagation back up the tree requires recalculating the evaluation for the new node, rather than just negating as would be appropriate for a 2 player game.
Dec
26
answered Minimax in a bayesian game with multiple players who do not play in order
Dec
18
answered Why doesn't Java 8 include immutable collections?
Nov
16
answered Interpreter or virtual machine that does not execute bytecode
Nov
12
comment Which is the most practical way to add functionality to this piece of code?
It's pointless to have a formal interface that will only be used once. You can write all the specs or interfaces you want, and it might not be a bad idea, but they'll be wrong when the rubber meets the road. It's similar to the military aphorism that no battle plan lasts past when the first shot is fired.
Nov
12
answered Which is the most practical way to add functionality to this piece of code?
Oct
14
comment Is it bad practice to check object types with an identifying member variable?
sometimes it's the best choice, especially if the behavior is not strictly linked to the class. There's definitely tension between defining behavior by class inheritance verses other means.