Modified Adversarial Hierarchical Task Network Planning in Real-Time Strategy Games
The application of artificial intelligence (AI) to real-time strategy (RTS) games includes considerable challenges due to the very large state spaces and branching factors, limited decision times, and dynamic adversarial environments involved. To address these challenges, hierarchical task network (...
Main Authors: | , , , , |
---|---|
Format: | Article |
Language: | English |
Published: |
MDPI AG
2017-08-01
|
Series: | Applied Sciences |
Subjects: | |
Online Access: | https://www.mdpi.com/2076-3417/7/9/872 |
id |
doaj-6f354aedafb64eea984389342236787f |
---|---|
record_format |
Article |
spelling |
doaj-6f354aedafb64eea984389342236787f2020-11-25T01:02:12ZengMDPI AGApplied Sciences2076-34172017-08-017987210.3390/app7090872app7090872Modified Adversarial Hierarchical Task Network Planning in Real-Time Strategy GamesLin Sun0Peng Jiao1Kai Xu2Quanjun Yin3Yabing Zha4College of Information System and Management, National University of Defense Technology, Changsha 410073, ChinaCollege of Information System and Management, National University of Defense Technology, Changsha 410073, ChinaCollege of Information System and Management, National University of Defense Technology, Changsha 410073, ChinaCollege of Information System and Management, National University of Defense Technology, Changsha 410073, ChinaCollege of Information System and Management, National University of Defense Technology, Changsha 410073, ChinaThe application of artificial intelligence (AI) to real-time strategy (RTS) games includes considerable challenges due to the very large state spaces and branching factors, limited decision times, and dynamic adversarial environments involved. To address these challenges, hierarchical task network (HTN) planning has been extended to develop a method denoted as adversarial HTN (AHTN), and this method has achieved favorable performance. However, the HTN description employed cannot express complex relationships among tasks and accommodate the impacts of the environment on tasks. Moreover, AHTN cannot address task failures during plan execution. Therefore, this paper proposes a modified AHTN planning algorithm with failed task repair functionality denoted as AHTN-R. The algorithm extends the HTN description by introducing three additional elements: essential task, phase, and exit condition. If any task fails during plan execution, the AHTN-R algorithm identifies and terminates all affected tasks according to the extended HTN description, and applies a novel task repair strategy based on a prioritized listing of alternative plans to maintain the validity of the previous plan. In the planning process, AHTN-R generates the priorities of alternative plans by sorting all nodes of the game search tree according to their primary features. Finally, empirical results are presented based on a µRTS game, and the performance of AHTN-R is compared to that of AHTN and to the performances of other state-of-the-art search algorithms developed for RTS games.https://www.mdpi.com/2076-3417/7/9/872HTN planningreal-time strategy gametask repair |
collection |
DOAJ |
language |
English |
format |
Article |
sources |
DOAJ |
author |
Lin Sun Peng Jiao Kai Xu Quanjun Yin Yabing Zha |
spellingShingle |
Lin Sun Peng Jiao Kai Xu Quanjun Yin Yabing Zha Modified Adversarial Hierarchical Task Network Planning in Real-Time Strategy Games Applied Sciences HTN planning real-time strategy game task repair |
author_facet |
Lin Sun Peng Jiao Kai Xu Quanjun Yin Yabing Zha |
author_sort |
Lin Sun |
title |
Modified Adversarial Hierarchical Task Network Planning in Real-Time Strategy Games |
title_short |
Modified Adversarial Hierarchical Task Network Planning in Real-Time Strategy Games |
title_full |
Modified Adversarial Hierarchical Task Network Planning in Real-Time Strategy Games |
title_fullStr |
Modified Adversarial Hierarchical Task Network Planning in Real-Time Strategy Games |
title_full_unstemmed |
Modified Adversarial Hierarchical Task Network Planning in Real-Time Strategy Games |
title_sort |
modified adversarial hierarchical task network planning in real-time strategy games |
publisher |
MDPI AG |
series |
Applied Sciences |
issn |
2076-3417 |
publishDate |
2017-08-01 |
description |
The application of artificial intelligence (AI) to real-time strategy (RTS) games includes considerable challenges due to the very large state spaces and branching factors, limited decision times, and dynamic adversarial environments involved. To address these challenges, hierarchical task network (HTN) planning has been extended to develop a method denoted as adversarial HTN (AHTN), and this method has achieved favorable performance. However, the HTN description employed cannot express complex relationships among tasks and accommodate the impacts of the environment on tasks. Moreover, AHTN cannot address task failures during plan execution. Therefore, this paper proposes a modified AHTN planning algorithm with failed task repair functionality denoted as AHTN-R. The algorithm extends the HTN description by introducing three additional elements: essential task, phase, and exit condition. If any task fails during plan execution, the AHTN-R algorithm identifies and terminates all affected tasks according to the extended HTN description, and applies a novel task repair strategy based on a prioritized listing of alternative plans to maintain the validity of the previous plan. In the planning process, AHTN-R generates the priorities of alternative plans by sorting all nodes of the game search tree according to their primary features. Finally, empirical results are presented based on a µRTS game, and the performance of AHTN-R is compared to that of AHTN and to the performances of other state-of-the-art search algorithms developed for RTS games. |
topic |
HTN planning real-time strategy game task repair |
url |
https://www.mdpi.com/2076-3417/7/9/872 |
work_keys_str_mv |
AT linsun modifiedadversarialhierarchicaltasknetworkplanninginrealtimestrategygames AT pengjiao modifiedadversarialhierarchicaltasknetworkplanninginrealtimestrategygames AT kaixu modifiedadversarialhierarchicaltasknetworkplanninginrealtimestrategygames AT quanjunyin modifiedadversarialhierarchicaltasknetworkplanninginrealtimestrategygames AT yabingzha modifiedadversarialhierarchicaltasknetworkplanninginrealtimestrategygames |
_version_ |
1725206145481572352 |