Sign in to follow this  
Ozymandias42

Minor Convention Question

Recommended Posts

If the client says "At time X, I'm pressing the right key," does that mean that the right key is meant to be used during the transition from X-1 to X, or does that mean X is to be used from state X to X+1? Same question applies to state recordings for playback. Just wondering what others do.

Share this post


Link to post
Share on other sites
I would think it means transition from X to X+1, but it's really up to you. Do whatever is easiest for your own system. Just make sure you document, unit test, and assert the correct behavior :-)

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this