終端執行畫面
$ ./maze_ai_vs_player
=== AI vs Player: Intelligent Maze Escape Challenge ===
Generating 30x30 Maze...
Maze generated successfully!
##############################
#S# # # # # # # #
###########################E#
Select Mode:
3
玩家模式(輸入方向)
You are the Player (S)
Use W/A/S/D to move. Reach 'E' to escape!
Move (W/A/S/D): D
Move (W/A/S/D): D
Move (W/A/S/D): S
Move (W/A/S/D): S
Invalid move! Wall ahead.
Move (W/A/S/D): D
Move (W/A/S/D): S
...
You escaped the maze in 182 steps, 21.84 seconds!
AI 模式(A* 搜尋)
AI searching path using A* algorithm...
Searching...
[### Animation showing AI scanning the maze ###]
Path found!
Path length: 74
Expanded nodes: 652
Execution time: 4.27 ms
對戰結果比較
=== Result Comparison ===
Player: 182 steps, 21.84 sec
AI (A*): 74 steps, 4.27 ms
Winner: AI !!!