Abstract
We analyze the computational complexity of various two-dimensional platform games. We state and prove several meta-theorems that identify a class of these games for which the set of solvable levels is NP-hard, and another class for which the set is even PSPACE-hard. Notably CommanderKeen is shown to be NP-hard, and PrinceOfPersia is shown to be PSPACE-complete.
We then analyze the related game Lemmings, where we construct a set of instances which only have exponentially long solutions. This shows that an assumption by Cormode in [3] is false and invalidates the proof that the general version of the Lemmings decision problem is in NP. We then augment our construction to only include one entrance, which makes our instances perfectly natural within the context of the original game.
Access this chapter
Tax calculation will be finalised at checkout
Purchases are for personal use only
Preview
Unable to display preview. Download preview PDF.
References
Bouton, C.L.: Nim, a game with a complete mathematical theory. Annals of Mathematics 3, 35–39 (1901/2002)
Conway, J.H.: On Numbers and Games. Academic Press, London (1976)
Cormode, G.: The Hardness of the Lemmings Game, or Oh no, more NP-Completeness Proofs. In: Proceedings of Third International Conference on Fun with Algorithms, pp. 65–76 (2004)
Culbertson, J.: Sokoban is PSPACE-complete. In: Proceedings of the International Conference on Fun with Algorithms, pp. 65–76 (1998)
Demaine, E.D., Hearn, R.A.: Constraint logic: A uniform framework for modeling computation as games. In: Proceedings of the 23rd Annual IEEE Conference on Computational Complexity (2008)
Demaine, E.D., Hearn, R.A.: Playing games with algorithms: Algorithmic combinatorial game theory. In: Albert, M.H., Nowakowski, R.J. (eds.) Games of No Chance 3. Mathematical Sciences Research Institute Publications, vol. 56, pp. 3–56. Cambridge University Press, Cambridge (2009)
Eppstein, D.: Computational Complexity of Games and Puzzles (2009), http://www.ics.uci.edu/~eppstein/cgt/hard.html
Grundy, P.M.: Mathematics and games. Eureka 2, 6–8 (1939)
Itai, A., Papadimitriou, C.H., Szwarcfiter, J.L.: Hamilton Paths in Grid Graphs. SIAM Journal on Computing 11(4), 676–686 (1982)
Kaye, R.: Minesweeper is NP-complete. Mathematical Intelligencer 22(2), 9–15 (2000)
Kendall, G., Parkes, A., Spoerer, K.: A Survey of NP-Complete Puzzles. International Computer Games Association Journal 31(1), 13–34 (2008)
Lichtenstein, D.: Planar Formulae and Their Uses. SIAM Journal on Computing 11(2), 329–343 (1982)
McCarthy, J.: Partial formalizations and the Lemmings game, Technical report, Stanford University, Formal Reasoning Group (1998)
Robin, G.: Estimation de la fonction de Tchebychef θ sur le k-ième nombre premier et grandes valeurs de la fonction ω(n) nombre de diviseurs premiers de n. Acta Arith. 42(4), 367–389 (1983)
Robson, J.M.: The complexity of Go. In: Proceedings of the IFIP 9th World Computer Congress on Information Processing, pp. 413–417 (1983)
Robson, J.M.: N by N Checkers is EXPTIME complete. SIAM Journal on Computing 13(2), 252–267 (1984)
Spoerer, K.: The Lemmings Puzzle: Computational Complexity of an Approach and Identification of Difficult Instances. PhD thesis (2007)
Sprague, R.P.: Ueber mathematische Kampfspiele. Tohoku Mathematical Journal 41, 438–444 (1935/1936)
Author information
Authors and Affiliations
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2010 Springer-Verlag Berlin Heidelberg
About this paper
Cite this paper
Forišek, M. (2010). Computational Complexity of Two-Dimensional Platform Games. In: Boldi, P., Gargano, L. (eds) Fun with Algorithms. FUN 2010. Lecture Notes in Computer Science, vol 6099. Springer, Berlin, Heidelberg. https://doi.org/10.1007/978-3-642-13122-6_22
Download citation
DOI: https://doi.org/10.1007/978-3-642-13122-6_22
Publisher Name: Springer, Berlin, Heidelberg
Print ISBN: 978-3-642-13121-9
Online ISBN: 978-3-642-13122-6
eBook Packages: Computer ScienceComputer Science (R0)