Open Access Open Access  Restricted Access Subscription or Fee Access

An Algorithmic Solution for a Single Player Computer Game

Daxin Zhu, Lei Wang, Jun Tian, Xiaodong Wang

Abstract


In this paper we study a single player game called moving checkers. The initial state of the game are n black checkers followed by n white checkers put on a table from left to right in a row. The final state of the game are the 2n checkers put from left to right in a row with alternate colors. A move of the game consists of shifting two adjacent checkers, keeping their order, into the current two vacant positions. The goal of the game is to make a smallest number of moves to reach the final state of the game from the initial state. We are interested in algorithms which, given integers n, generate the corresponding move sequences to reach the final state of the game with smallest number of steps. In this paper we present an optimal algorithm to generate an optimal move sequence of the game consisting of n black checkers and n white checkers, and finally, we present an explicit solution for the general game of size n.

Keywords


Computer games, optimal algorithms, explicit solutions.

Full Text:

PDF


Disclaimer/Regarding indexing issue:

We have provided the online access of all issues and papers to the indexing agencies (as given on journal web site). It’s depend on indexing agencies when, how and what manner they can index or not. Hence, we like to inform that on the basis of earlier indexing, we can’t predict the today or future indexing policy of third party (i.e. indexing agencies) as they have right to discontinue any journal at any time without prior information to the journal. So, please neither sends any question nor expects any answer from us on the behalf of third party i.e. indexing agencies.Hence, we will not issue any certificate or letter for indexing issue. Our role is just to provide the online access to them. So we do properly this and one can visit indexing agencies website to get the authentic information. Also: DOI is paid service which provided by a third party. We never mentioned that we go for this for our any journal. However, journal have no objection if author go directly for this paid DOI service.