91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

代寫COMP3702、代做Python編程語言

時間:2024-08-22  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



COMP3702 Assignment 1: Search in BeeBot
The BeeBot AI Environment
You have been tasked with developing a search algorithm for automatically controlling BeeBot, a Bee
which operates in a hexagonal environment, and has the capability to push, pull and rotate honey ‘Widgets’
in order to reposition them to target honeycomb locations. To aid you in this task, we have provided
support code for the BeeBot environment which you will interface with to develop your solution at https:
//github.com/comp3702/2024-Assignment-**Support-Code. To optimally solve a level, your AI agent
must efficiently find a sequence of actions so that every Target honeycomb cell is occupied by part of a
Widget, while incurring the minimum possible action cost.
Levels in BeeBot are composed of a Hexagonal grid of cells, where each cell contains a character representing
the cell type. An example game level is shown in Figure 1.
Figure 1: Example game level of BeeBot, showing character-based and GUI visualiser representations
Page 1
COMP3702 Assignment 1: Search in BeeBot
Environment representation
Hexagonal Grid
The environment is represented by a hexagonal grid. Each cell of the hex grid is indexed by (row, column)
coordinates. The hex grid is indexed top to bottom, left to right. That is, the top left corner has coordinates
(0, 0) and the bottom right corner has coordinates (nrows ? 1, ncols ? 1). Even numbered columns (starting
from zero) are in the top half of the row, and odd numbered columns are in the bottom half of the row. An
example is shown in Figure 2.
____ ____
/ \ / \
/row 0 \____/row 0 \____ ...
\col 0 / \col 2 / \
\____/row 0 \____/row 0 \ ...
/ \col 1 / \col 3 /
/row 1 \____/row 1 \____/ ...
\col 0 / \col 2 / \
\____/row 1 \____/row 1 \ ...
\col 1 / \col 3 /
... \____/ ... \____/
... ...
Figure 2: Example hexagonal grid showing the order that rows and columns are indexed
Two cells in the hex grid are considered adjacent if they share an edge. For each non-border cell, there are 6
adjacent cells.
The BeeBot Agent and its Actions
The BeeBot Bee occupies a single cell in the hex grid. In the visualisation, the Bee is represented by the
cell marked with the character ‘R’ (or the Bee in the graphical visualiser). The side of the cell marked with
‘*’ (or the arrow in the graphical visualiser) represents the front of the Bee. The state of the Bee is defined
by its (row, column) coordinates and its orientation (i.e. the direction its front side is pointing towards).
At each time step, the agent is prompted to select an action. The Bee has 4 available actions:
? Forward → move to the adjacent cell in the direction of the front of the Bee (keeping the same
orientation)
? Reverse→ move to the adjacent cell in the opposite direction to the front of the Bee (keeping the same
orientation)
? Spin Left → rotate left (relative to the Bee’s front, i.e. counterclockwise) by 60 degrees (staying in the
same cell)
? Spin Right → rotate right (i.e. clockwise) by 60 degrees (staying in the same cell)
The Bee is equipped with a gripper on its front side which allows it to manipulate honey Widgets. When the
Bee is positioned with its front side adjacent to a honey Widget, performing the ‘Forward’ action will result in
the Widget being pushed, while performing the ‘Reverse’ action will result in the honey Widget being pulled.
Action Costs
Each action has an associated cost, representing the amount of energy used by performing that action.
If the Bee moves without pushing or pulling a honey widget, the cost of the action is given by a base action
cost, ACTION_BASE_COST[a] where ‘a’ is the action that was performed.
If the Bee pushes or pulls a honey widget, an additional cost of ACTION_PUSH_COST[a] is added on top, so
the total cost is ACTION_BASE_COST[a] + ACTION_PUSH_COST[a].
The costs are detailed in the constants.py file of the support code:
ACTION_BASE_COST = {FORWARD: 1.0, REVERSE: 1.0, SPIN_LEFT: 0.1, SPIN_RIGHT: 0.1}
ACTION_PUSH_COST = {FORWARD: 0.8, REVERSE: 0.5, SPIN_LEFT: 0.0, SPIN_RIGHT: 0.0}
Page 2
COMP3702 Assignment 1: Search in BeeBot
Obstacles
Some cells in the hex grid are obstacles. In the visualisation, these cells are filled with the character ‘X’
(represented as black cells in the graphical visualiser). Any action which causes the Bee or any part of a
honey Widget to enter an obstacle cell is invalid (i.e. results in collision). The outside boundary of the hex
grid behaves in the same way as an obstacle.
Widgets
Honey Widgets are objects which occupy multiple cells of the hexagonal grid, and can be rotated and translated
by the BeeBot Bee. The state of each honey widget is defined by its centre position (row, column)
coordinates and its orientation. Honey Widgets have rotational symmetries - orientations which are rotationally
symmetric are considered to be the same.
In the visualisation, each honey Widget in the environment is assigned a unique letter ‘a’, ‘b’, ‘c’, etc. Cells
which are occupied by a honey Widget are marked with the letter assigned to that Widget (surrounded by
round brackets). The centre position of the honey Widget is marked by the uppercase version of the letter,
while all other cells occupied by the widget are marked with the lowercase.
Three honey widget types are possible, called Widget3, Widget4 and Widget5, where the trailing number
denotes the number of cells occupied by the honey Widget. The shapes of these three honey Widget types
and each of their possible orientations are shown in Figures 3 to 5 below.
VERTICAL
_____
SLANT_LEFT / \ SLANT_RIGHT
_____ / (a) \ _____
/ \ \ / / \
/ (a) \_____ \_____/ _____/ (a) \
\ / \ / \ / \ /
\_____/ (A) \_____ / (A) \ _____/ (A) \_____/
\ / \ \ / / \ /
\_____/ (a) \ \_____/ / (a) \_____/
\ / / \ \ /
\_____/ / (a) \ \_____/
\ /
\_____/
Figure 3: Widget3
UP DOWN
_____ _____ _____
/ \ / \ / \
/ (a) \ / (a) \_____/ (a) \
\ / \ / \ /
\_____/ \_____/ (A) \_____/
/ \ \ /
_____/ (A) \_____ \_____/
/ \ / \ / \
/ (a) \_____/ (a) \ / (a) \
\ / \ / \ /
\_____/ \_____/ \_____/
Figure 4: Widget4
SLANT_RIGHT SLANT_LEFT
_____ _____
HORIZONTAL / \ / \
_____ _____ / (a) \_____ _____/ (a) \
/ \ / \ \ / \ / \ /
/ (a) \_____/ (a) \ \_____/ (a) \ / (a) \_____/
\ / \ / / \ / \ / \
\_____/ (A) \_____/ _____/ (A) \_____/ \_____/ (A) \_____
/ \ / \ / \ / \ / \
/ (a) \_____/ (a) \ / (a) \_____/ \_____/ (a) \
\ / \ / \ / \ / \ /
\_____/ \_____/ \_____/ (a) \ / (a) \_____/
\ / \ /
\_____/ \_____/
Figure 5: Widget5
Page 3
COMP3702 Assignment 1: Search in BeeBot
Two types of widget movement are possible – translation (change in centre position) and rotation (change in
orientation).
Translation occurs when the Bee is positioned with its front side adjacent to one of the honey widgets’ cells
such that the Bee’s orientation is in line with the honey widget’s centre position. Translation results in the
centre position of the widget moving in the same direction as the Bee. The orientation of the honey Widget
does not change when translation occurs. Translation can occur when either ‘Forward’ or ‘Reverse’ actions
are performed. For an action which results in translation to be valid, the new position of all cells of the moved
widget must not intersect with the environment boundary, obstacles, the cells of any other honey Widgets or
the Bee’s new position.
Rotation occurs when the Bee’s current position is adjacent to the centre of the widget but the Bee’s
orientation does not point towards the centre of the widget. Rotation results in the honey widget spinning
around its centre point, causing the widget to change orientation. The position of the centre point does not
change when rotation occurs. Rotation can only occur for the ‘Forward’ action - performing ‘Reverse’ in a
situation where ‘Forward’ would result in a widget rotation is considered invalid.
The following diagrams show which moves result in translation or rotation for each honey Widget type, with
the arrows indicating directions from which the Bee can push or pull a widget in order to cause a translation
or rotation of the widget. Pushing in a direction which is not marked with an arrow is considered invalid.
Forward Translate
Reverse Translate
Forward Rotate CW
Reverse Rotate CCW
Figure 6: Widget3 translations and rotations
Forward Translate
Reverse Translate
Forward Rotate CW
Reverse Rotate CCW
Figure 7: Widget4 translations and rotations
Page 4
COMP3702 Assignment 1: Search in BeeBot
Forward Translate
Reverse Translate
Forward Rotate CW
Reverse Rotate CCW
Figure 8: Widget5 translations and rotations
Targets
The hex grid contains a number of ‘target’ honeycomb cells which must be filled with honey. In the visuali-
sation, these cells are marked with ‘tgt’ (cells coloured in orange in the graphical visualiser). For a BeeBot
environment to be considered solved, each target cell must be occupied by part of a honey Widget. The
number of targets in an environment is always less than or equal to the total number of cells occupied by all
honey Widgets.
Interactive mode
A good way to gain an understanding of the game is to play it. You can play the game to get a feel for
how it works by launching an interactive game session from the terminal with the following command for the
graphical visualiser:
$ python play_game.py .txt
or the following command for the command-line ASCII-character based visualiser:
$ python play.py .txt
where .txt is a valid testcase file (from the support code, with path relative to the current
directory), e.g. testcases/ex1.txt.
Depending on your python installation, you should run the code using python, python3 or py.
In interactive mode, type the symbol for your chosen action (and press enter in the command line version) to
perform the action: press ’W’ to move the Bee forward, ’S’ to move the Bee in reverse, ’A’ to turn the Bee
left (counterclockwise) and ’D’ to turn the Bee right (clockwise). Use ’Q’ to quit the simulation, and ’R’ to
reset the environment to the initial configuration.
Page 5

請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp





 

掃一掃在手機打開當前頁
  • 上一篇:代做Electric Vehicle Adoption Tools 、代寫Java程序設計
  • 下一篇:COS110代做、代寫C/C++設計程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務-企業/產品研發/客戶要求/設計優化
    有限元分析 CAE仿真分析服務-企業/產品研發
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
  • 短信驗證碼 目錄網 排行網

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    91精品国产91久久久久久_国产精品二区一区二区aⅴ污介绍_一本久久a久久精品vr综合_亚洲视频一区二区三区
    久久av资源站| 日日夜夜精品视频免费| 日韩一区二区三| 欧美三级韩国三级日本三斤| 免费在线亚洲| 久久国产精品久久精品国产| 亚洲欧洲精品一区二区三区波多野1战4 | 国产一区二区三区在线观看免费视频 | 欧美视频在线观看一区二区| 91国产免费观看| 欧美日韩在线精品一区二区三区激情| 日韩欧美成人一区| 日韩精品一区二| 久久久精品免费网站| 亚洲国产精品激情在线观看| 中文字幕欧美日本乱码一线二线| 日本一区二区高清| 一区二区不卡在线播放| 亚洲一区二区在线播放相泽| 日本视频在线一区| 国产一区三区三区| 国产69精品久久久久毛片| 成人av影视在线观看| 欧美va天堂| 国产日产精品一区二区三区四区的观看方式 | 久久se精品一区精品二区| 懂色av一区二区在线播放| 欧美一区二区三区在线免费观看 | 欧美高清激情brazzers| 久久色.com| 亚洲黄网站在线观看| 日韩精品一级二级| 国产高清成人在线| 亚洲午夜精品久久| 久久综合久久久| 日韩一级视频免费观看在线| 亚洲国产高清aⅴ视频| 亚洲综合精品自拍| 国产综合久久久久久久久久久久| 色综合色狠狠综合色| 国产精品社区| 欧美一区二区视频在线观看| 亚洲国产经典视频| 麻豆精品在线视频| 欧美久久99| 91国偷自产一区二区开放时间| 欧美一区午夜视频在线观看| 亚洲色图制服诱惑| 国产麻豆欧美日韩一区| 狠狠色综合色区| 欧美酷刑日本凌虐凌虐| 1000部国产精品成人观看| 久久99精品国产.久久久久久| 午夜日韩电影| 欧洲av一区二区嗯嗯嗯啊| 国产午夜精品一区二区 | 在线日韩欧美| 日韩精品一区在线观看| 亚洲国产成人高清精品| 北条麻妃国产九九精品视频| 五月开心婷婷久久| av中文一区二区三区| 日本久久电影网| 中文字幕av一区二区三区免费看 | 欧美在线一区二区| 国产精品麻豆欧美日韩ww| 国内精品久久久久影院一蜜桃| 亚洲国产裸拍裸体视频在线观看乱了中文| 欧美日韩一区二区三区四区| 亚洲视频一区二区在线| www.在线成人| 欧美日韩大陆一区二区| 一区二区三区中文字幕精品精品 | 美日韩黄色大片| 久久久综合网| 中文字幕一区二区不卡 | 欧美视频完全免费看| 亚洲小说欧美激情另类| 欧美日韩亚洲三区| 日韩一本二本av| 麻豆精品视频在线| 国产欧美三级| 亚洲女同一区二区| 欧美日韩专区| 欧美成人三级电影在线| 国产一区二区三区免费| 在线观看av一区二区| 亚洲综合激情另类小说区| 韩国亚洲精品| 国产亚洲综合在线| 欧美在线免费| 国产欧美一区二区精品性色| hitomi一区二区三区精品| 欧美一级久久久| 国产福利一区二区| 欧美色成人综合| 精品一区二区精品| 在线观看日韩电影| 日本欧美大码aⅴ在线播放| 亚洲制服少妇| 午夜在线成人av| 久久久噜噜噜| 免费看日韩精品| 欧美日产在线观看| 韩国理伦片一区二区三区在线播放| 色婷婷亚洲综合| 免费一级欧美片在线观看| 色久优优欧美色久优优| 久久er精品视频| 日韩小视频在线观看专区| 成人亚洲一区二区一| 欧美一区二区三区性视频| 国产精品99久久久久久久女警| 91精品国产综合久久久久久久久久| 国产精品亚洲第一| 精品久久久久久久久久久院品网 | 青青草97国产精品免费观看无弹窗版| 色乱码一区二区三区88| 国内久久精品视频| 精品国产一区二区三区久久久蜜月| 不卡的av电影| 成人欧美一区二区三区小说| 国产视频一区三区| 日本vs亚洲vs韩国一区三区| 在线播放视频一区| jlzzjlzz亚洲日本少妇| 国产精品久久久久精k8| 久久国产88| 国产精品资源在线看| 欧美激情一区二区三区全黄 | 中文在线一区二区| 免费不卡亚洲欧美| 国产一区二区h| 国产欧美1区2区3区| 99精品99| 国产精品原创巨作av| 国产精品五月天| 日本久久电影网| 欧美一区1区三区3区公司| 一区二区三区在线视频观看| 欧美日韩aaa| 亚洲自拍另类综合| 欧美日韩亚洲丝袜制服| 91在线观看免费视频| 亚洲成人av在线电影| 3751色影院一区二区三区| 亚洲大片在线| 国产综合色在线| 一区二区三区免费观看| 欧美一区二区在线观看| 亚洲精品欧洲| 粉嫩av一区二区三区粉嫩| 尤物在线观看一区| 51午夜精品国产| 国产精品区一区| 不卡电影一区二区三区| 午夜伦欧美伦电影理论片| 久久综合狠狠综合| 色菇凉天天综合网| 欧美日韩免费观看一区=区三区| 久久疯狂做爰流白浆xx| 日韩一区在线看| 久久综合视频网| 色成人在线视频| 激情五月播播久久久精品| 亚洲国产一区视频| 日韩免费视频一区| 久久久久中文| 一区二区三区欧美在线| av成人老司机| 精品一区二区三区免费| 亚洲精品免费电影| 欧美精品一区二| 欧美群妇大交群中文字幕| 99成人在线| 午夜亚洲福利| 成人激情开心网| 国产在线播放一区三区四| 亚洲国产精品嫩草影院| 国产精品看片你懂得| 精品国产一二三区| 欧美日韩第一区日日骚| 色哟哟在线观看一区二区三区| 亚洲欧洲精品一区二区| 欧美在线播放一区| 成人网页在线观看| 国产美女精品一区二区三区| 日韩国产欧美三级| 亚洲国产你懂的| 亚洲乱码一区二区三区在线观看| 欧美韩日一区二区三区| 精品免费日韩av| 69久久99精品久久久久婷婷| 欧美亚洲日本一区| 久久精品女人| 久久精品二区三区| 亚洲在线电影| 玖玖视频精品| 色伊人久久综合中文字幕| 久久久久久一区|