Five-in-a-row Game on Android System
Chen, Zehong (2017)
Chen, Zehong
Vaasan ammattikorkeakoulu
2017
All rights reserved
Julkaisun pysyvä osoite on
https://urn.fi/URN:NBN:fi:amk-201705219213
https://urn.fi/URN:NBN:fi:amk-201705219213
Tiivistelmä
The topic of this thesis was programming a five-in-a-row game on an Android system. As a traditional game, five-in-a-row has many faithful fans, the most popular five-in-a-row game on Google Play has about 5 million downloads.
Five-in-a-row has simple rules, it is easy to play but hard to master. Designing a satisfactory algorithm for the five-in-a-row computer player was the main aim of the study.
This game has a single player mode as the main function. In this mode the players can play against a computer player, which is supported by an algorithm. In addition, the game also allows players to save their record in their local account, and players can set configurations for other functions.
The application was developed for an Android system, which is using Java as the programming language. The UI and algorithm both used Java. Some XML flies were also used to define the application layout and properties. For storing the data, SQLite was used save the record of players. This thesis describes the process and the theory which supports the algorithm of a computer player, and the structure of the application. The details such as the calculation of weight and the analysis of the situation were also covered in the thesis.
Five-in-a-row has simple rules, it is easy to play but hard to master. Designing a satisfactory algorithm for the five-in-a-row computer player was the main aim of the study.
This game has a single player mode as the main function. In this mode the players can play against a computer player, which is supported by an algorithm. In addition, the game also allows players to save their record in their local account, and players can set configurations for other functions.
The application was developed for an Android system, which is using Java as the programming language. The UI and algorithm both used Java. Some XML flies were also used to define the application layout and properties. For storing the data, SQLite was used save the record of players. This thesis describes the process and the theory which supports the algorithm of a computer player, and the structure of the application. The details such as the calculation of weight and the analysis of the situation were also covered in the thesis.