Home > Archive > 2012 > Volume 2 Number 1 (Feb. 2012) >
IJML 2012 Vol.2(1): 13-18
doi: 10.7763/IJMLC.2012.V2.82

Game AI: Simulating Car Racing Game by Applying Pathfinding Algorithms

Jung-Ying Wang1 , Yong-Bin Lin2

  • 1Department of Multimedia and Game Science, Lunghwa University of Science and Technology, Taoyuan, 333, Taiwan.
  • 2Department of Electronic Engineering, Lunghwa University of Science and Technology, Taoyuan, 333, Taiwan.

Abstract

In this paper, two modified A* algorithms to effectively solve the pathfinding problem in a static obstacles racing game are proposed. Three real speedways of Formula one (F1) are selected as our game speedways, to simulate and analyze our study. The first modified A* algorithm uses a line-of-sight algorithm to reduce the waypoints found by the original A* algorithm; about 97% waypoints in the speedways of F1 in Turkey, Italy and Hungary could be removed. The second modified A* algorithm improves the performance of original A* algorithm by heuristically considering the truth that the game-controlled car should steer itself towards. That is to say, we could reduce the lap times by only checking three waypoints in front of the car, instead of checking four waypoints (up, down, left and right) in the original A* algorithm. Finally, a more general dynamic pathfinding algorithm which can solve the random obstacles avoidance problem in a racing game is also proposed.

Keywords

  • Racing game
  • pathfinding
  • A* algorithm
  • game AI
82-A1090

How to Cite

Copied

Jung-Ying Wang and Yong-Bin Lin, "Game AI: Simulating Car Racing Game by Applying Pathfinding Algorithms," International Journal of Machine Learning, vol. 2, no. 1, pp. 13-18, 2012. https://doi.org/10.7763/IJMLC.2012.V2.82

Copyright & License

Copyright © 2012 by the authors. This is an open access article distributed under the Creative Commons Attribution License which permits unrestricted use, distribution, and reproduction in any medium, provided the original work is properly cited (CC BY 4.0).

Article Metrics in Dimensions

General Information

  • E-ISSN: 2972-368X
  • Abbreviated Title: Int. J. Mach. Learn.
  • DOI: 10.18178/IJML
  • Frequency: Quarterly
  • Average Days to Accept: 68 days
  • Acceptance Rate: 27%
  • Editor-in-Chief: Dr. Lin Huang
  • Executive Editor:  Ms. Cherry L. Chen
  • DOI: 10.18178/IJML
  • Abstracing/Indexing: Google Scholar, Crossref, ProQuest, Electronic Journals Library, CNKI.
  • E-mail: editor@ijml.org
  • APC: 500USD