Lock-Step simulation is child’s play (Experience report)

4Citations
Citations of this article
22Readers
Mendeley users who have this article in their library.

Abstract

Implementing multi-player networked games by broadcasting the player’s input and letting each client calculate the game state ś a scheme known as lock-step simulation ś is an established technique. However, ensuring that every client in this scheme obtains a consistent state is infamously hard and in general requires great discipline from the game programmer. The thesis of this report is that in the realm of functional programming ś in particular with Haskell’s purity and static pointers ś this hard problem becomes almost trivially easy. We support this thesis by implementing lock-step simulation under very adverse conditions. We extended the educational programming environment CodeWorld, which is used to teach math and programming to middle school students, with the ability to create and run interactive, networked multi-user games. Despite providing a very abstract and high-level interface, and without requiring any discipline from the programmer, we can provide consistent lock-step simulation with client prediction.

Cite

CITATION STYLE

APA

Breitner, J., & Smith, C. (2017). Lock-Step simulation is child’s play (Experience report). Proceedings of the ACM on Programming Languages, 1(ICFP). https://doi.org/10.1145/3110247

Register to see more suggestions

Mendeley helps you to discover research relevant for your work.

Already have an account?

Save time finding and organizing research with Mendeley

Sign up for free