Ahh. An interesting point with worthwhile lessons learned. The first lesson might be to use a profiler or debugger more often. Thanks for pointing out the value of those tools. The second is...
Type: Posts; User: GregBrannon
Ahh. An interesting point with worthwhile lessons learned. The first lesson might be to use a profiler or debugger more often. Thanks for pointing out the value of those tools. The second is...
I tried a 100ms on a mediocre laptop with Win 7, and it doesn't break, but I imagine there could be a speed of execution at which a call to System.print() might not complete before the next event is...
This demonstration is purely event driven, each new event in the simulated game's progress is driven by the end of the last event. It doesn't end, by the way. You'll have to manually break out of...
I think you can make this approach work. An idle loop comes to mind. As long as the human player's thread is executing on a separate thread, the loop wouldn't exit until a flag from the player[i]...
Can you show this code? Please post it in code tags. If you're unsure how to do that, read this first.