iT邦幫忙

0

Day30 執行結果

  • 分享至 

  • xImage
  •  

終端執行畫面

$ ./maze_ai_vs_player
=== AI vs Player: Intelligent Maze Escape Challenge ===

Generating 30x30 Maze...
Maze generated successfully!

##############################
#S# # # # # # # #

# # # # # ### # # # ### #

# # # # # # # # # #

# ### # # # ##### # ### #

# # # # # # # #

### ### # ### # ### # ###

# # # # # # #

# # ### # ### ### # # #

# # # # # #

### ####### ### ##### ###

# # # # # # #

# ### ### # # ### #####

# # # # # # # #

# # ### # ### ### ### ###

# # # # # # # # #

### # ##### # # # # ### #

# # # # # # # #

# ### # ### ### ### ###

# # # # #

###########################E#

Select Mode:

  1. Player Mode
  2. AI Mode
  3. Player vs AI

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 !!!


圖片
  熱門推薦
圖片
{{ item.channelVendor }} | {{ item.webinarstarted }} |
{{ formatDate(item.duration) }}
直播中

尚未有邦友留言

立即登入留言