skip to main content
10.1145/3337722.3341838acmotherconferencesArticle/Chapter ViewAbstractPublication PagesfdgConference Proceedingsconference-collections
poster

Composition of basic heuristics for the game 2048

Published:26 August 2019Publication History

ABSTRACT

2048 is a simple and intriguing sliding block puzzle game that has been studied for several years. Many complex solvers, often developed using neural nets are available and capable of achieving very high scores. We are, however, interested in using only basic heuristics, the kind that could be conceivably employed by human players without the aid of computation. A common way to implement a 2048 solver involves searching the game tree for the best moves, choosing a move and scoring the game board using some evaluation functions. The choice in heuristic evaluation function can dramatically affect the moves chosen by the solver. Furthermore, two or more possible moves can frequently produce the same score as evaluated by the same heuristic function, requiring either a random choice, or the use of a secondary or back up evaluation function which itself in turn may produce a tie. In this paper, we test the effectiveness of several basic heuristics in a simple 2048 solver. In order to test these, we create a system that takes basic predefined heuristic evaluation functions as input parameters, generates compositions from these functions with certain rules, and automatically tests all of them with a specified number of games. We find that compositions of evaluation functions that maximize empty spaces and monotonicity of tiles on the board-especially those that prioritize high numbers of empty spaces above prioritizing higher monotonicity- perform the best out of all compositions that we test.

References

  1. Ahmed Abdelkader, Aditya Acharya, and Philip Dasler. 2016. 2048 Without New Tiles Is Still Hard. In FUN with Algorithms.Google ScholarGoogle Scholar
  2. Madhuparna Das and Goutam Paul. 2018. Analysis of the Game "2048" and its Generalization in Higher Dimensions. CoRR abs/1804.07393 (2018). arXiv:1804.07393 http://arxiv.org/abs/1804.07393Google ScholarGoogle Scholar
  3. David Eppstein. 2018. Making Change in 2048. CoRR abs/1804.07396 (2018). arXiv:1804.07396 http://arxiv.org/abs/1804.07396Google ScholarGoogle Scholar
  4. Wojciech Jaśkowski. 2016. Mastering 2048 with Delayed Temporal Coherence Learning, Multi-State Weight Promotion, Redundant Encoding and Carousel Shaping. CoRR abs/1604.05085 (2016). arXiv:1604.05085 http://arxiv.org/abs/1604.05085Google ScholarGoogle Scholar
  5. Stefan Langerman and Yushi Uno. 2018. Threes!, Fives, 1024!, and 2048 are hard. Theoretical Computer Science 748 (2018), 17 -- 27. FUN with Algorithms.Google ScholarGoogle ScholarCross RefCross Ref
  6. K. Matsuzaki. 2016. Systematic selection of N-tuple networks with consideration of interinfluence for game 2048. In 2016 Conference on Technologies and Applications of Artificial Intelligence (TAAI). 186--193.Google ScholarGoogle ScholarCross RefCross Ref
  7. Rahul Mehta. 2014. 2048 is (PSPACE) Hard, but Sometimes Easy. Electronic Colloquium on Computational Complexity (ECCC) 21 (2014), 116.Google ScholarGoogle Scholar
  8. Kazuto Oka and Kiminori Matsuzaki. 2016. Systematic Selection of N-Tuple Networks for 2048. In Computers and Games, Aske Plaat, Walter Kosters, and Jaap van den Herik (Eds.). Springer International Publishing, Cham, 81--92.Google ScholarGoogle Scholar
  9. P. Rodgers and J. Levine. 2014. An investigation into 2048 AI strategies. In 2014 IEEE Conference on Computational Intelligence and Games. 1--2.Google ScholarGoogle Scholar
  10. M. Szubert and W. Jaśkowski. 2014. Temporal difference learning of N-tuple networks for the game 2048. In 2014 IEEE Conference on Computational Intelligence and Games. 1--8.Google ScholarGoogle Scholar
  11. I-Chen Wu, Kun-Hao Yeh, Chao-Chin Liang, Chia-Chuan Chang, and Han Chiang. 2014. Multi-Stage Temporal Difference Learning for 2048. In Technologies and Applications of Artificial Intelligence, Shin-Ming Cheng and Min-Yuh Day (Eds.). Springer International Publishing, Cham, 366--378.Google ScholarGoogle Scholar
  12. Robert Xiao. 2014. What is the optimal algorithm for the game 2048? Retrieved September 14, 2018 from https://stackoverflow.com/a/22498940Google ScholarGoogle Scholar
  13. Robert Xiao, Wouter Vermaelen, and Petr MorÃąvek. 2018. 2048-AI. Retrieved September 14, 2018 from https://github.com/nneonneo/2048-aiGoogle ScholarGoogle Scholar

Index Terms

  1. Composition of basic heuristics for the game 2048

        Recommendations

        Comments

        Login options

        Check if you have access through your login credentials or your institution to get full access on this article.

        Sign in
        • Published in

          cover image ACM Other conferences
          FDG '19: Proceedings of the 14th International Conference on the Foundations of Digital Games
          August 2019
          822 pages
          ISBN:9781450372176
          DOI:10.1145/3337722

          Copyright © 2019 Owner/Author

          Permission to make digital or hard copies of part or all of this work for personal or classroom use is granted without fee provided that copies are not made or distributed for profit or commercial advantage and that copies bear this notice and the full citation on the first page. Copyrights for third-party components of this work must be honored. For all other uses, contact the Owner/Author.

          Publisher

          Association for Computing Machinery

          New York, NY, United States

          Publication History

          • Published: 26 August 2019

          Check for updates

          Qualifiers

          • poster

          Acceptance Rates

          FDG '19 Paper Acceptance Rate46of124submissions,37%Overall Acceptance Rate152of415submissions,37%
        • Article Metrics

          • Downloads (Last 12 months)80
          • Downloads (Last 6 weeks)48

          Other Metrics

        PDF Format

        View or Download as a PDF file.

        PDF

        eReader

        View online with eReader.

        eReader