Search:

Type: Posts; User: GregBrannon

Search: Search took 0.12 seconds.

  1. Replies
    8
    Views
    1,138

    Re: how to enforce loop to wait

    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...
  2. Replies
    8
    Views
    1,138

    Re: how to enforce loop to wait

    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...
  3. Replies
    8
    Views
    1,138

    Re: how to enforce loop to wait

    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...
  4. Replies
    8
    Views
    1,138

    Re: how to enforce loop to wait

    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]...
  5. Replies
    8
    Views
    1,138

    Re: how to enforce loop to wait

    Can you show this code? Please post it in code tags. If you're unsure how to do that, read this first.
Results 1 to 5 of 5