99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

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

代寫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++設計程序
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 豆包 幣安下載 AI生圖 目錄網

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

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

    99爱在线视频这里只有精品_窝窝午夜看片成人精品_日韩精品久久久毛片一区二区_亚洲一区二区久久

          9000px;">

                91精品一区二区三区在线观看| 精品中文字幕一区二区| 欧美性大战久久| 国产成人在线看| 国产一区二区三区在线观看精品 | 国产一区视频网站| 理论片日本一区| 久久电影国产免费久久电影| 日本在线不卡一区| 日本不卡高清视频| 琪琪久久久久日韩精品| 麻豆91在线播放免费| 蜜臀91精品一区二区三区| 美国毛片一区二区| 国产福利一区二区三区视频| 国产一区二区三区在线观看精品 | 成人国产精品免费观看视频| 国产成人综合网站| 成人av手机在线观看| jizzjizzjizz欧美| 91国偷自产一区二区三区观看| 欧洲国内综合视频| 欧美日韩高清不卡| 91精品麻豆日日躁夜夜躁| 精品国产免费一区二区三区四区| www精品美女久久久tv| 国产精品久久久久久久久果冻传媒| 国产精品美女久久久久aⅴ国产馆| 国产免费久久精品| 亚洲一区二区成人在线观看| 免费成人在线影院| 成人a区在线观看| 欧美日韩在线播放三区四区| 日韩一区二区精品葵司在线| 国产亚洲一区二区三区在线观看| 18欧美乱大交hd1984| 日韩精品电影一区亚洲| 成人妖精视频yjsp地址| 欧美四级电影网| 国产视频一区二区三区在线观看| 一个色在线综合| 国产成人免费在线视频| 91九色最新地址| 欧美精品一区二区三区蜜桃视频| 亚洲精品国久久99热| 国产在线精品一区二区三区不卡 | 色88888久久久久久影院野外| 欧美一激情一区二区三区| 国产女人aaa级久久久级| 亚洲成人一区在线| aaa国产一区| 久久久蜜桃精品| 日韩**一区毛片| 色综合天天狠狠| 国产亚洲欧美一级| 日韩成人一级大片| 色婷婷综合久久久久中文一区二区 | 在线免费观看成人短视频| 337p日本欧洲亚洲大胆精品| 午夜精品免费在线观看| 91啪在线观看| 国产精品嫩草99a| 国模娜娜一区二区三区| 91精品久久久久久久91蜜桃| 亚洲免费在线看| 国产.欧美.日韩| 久久亚洲精品国产精品紫薇| 日韩电影免费在线看| 欧美色区777第一页| 亚洲婷婷国产精品电影人久久| 国产一区三区三区| 精品毛片乱码1区2区3区| 亚洲不卡一区二区三区| 日本高清成人免费播放| 亚洲人精品一区| 成人av免费在线| 国产精品国产三级国产aⅴ中文 | 亚洲最大色网站| 在线视频国内一区二区| 中文字幕佐山爱一区二区免费| 国产精品123| 久久久久久免费毛片精品| 免费欧美日韩国产三级电影| 欧美精品777| 三级久久三级久久久| 91麻豆精品国产91| 视频一区二区不卡| 日韩一区二区精品葵司在线| 久久se精品一区精品二区| 日韩精品一区国产麻豆| 国产在线精品一区二区不卡了| 久久理论电影网| 成人精品电影在线观看| 亚洲欧美日韩久久| 欧美午夜一区二区三区免费大片| 一区二区三区成人| 制服视频三区第一页精品| 蜜桃久久久久久| 国产精品天美传媒沈樵| 丁香五精品蜜臀久久久久99网站| 国产精品白丝在线| 欧美无人高清视频在线观看| 日韩制服丝袜av| 国产亚洲女人久久久久毛片| 91在线免费视频观看| 亚洲自拍偷拍欧美| 欧美一区二区视频免费观看| 国产伦精一区二区三区| 亚洲你懂的在线视频| 欧美最猛黑人xxxxx猛交| 奇米色777欧美一区二区| 久久精品一区二区三区四区| 99re在线视频这里只有精品| 亚洲第一激情av| 国产天堂亚洲国产碰碰| 91成人免费网站| 国产精品一区二区在线播放| 亚洲人成精品久久久久久| 911精品国产一区二区在线| 国产成人精品综合在线观看| 亚洲视频 欧洲视频| 欧美一区二区女人| 91麻豆福利精品推荐| 国产一区中文字幕| 亚洲福利电影网| 欧美激情艳妇裸体舞| 在线不卡欧美精品一区二区三区| 国产 欧美在线| 毛片av一区二区| 亚洲图片欧美视频| 亚洲欧洲精品一区二区精品久久久 | 国产综合久久久久久久久久久久| 亚洲私人黄色宅男| 久久一区二区三区四区| 欧美剧在线免费观看网站| 91香蕉视频污在线| 国产精品中文字幕欧美| 日韩av成人高清| 亚洲一区在线视频观看| 中文成人av在线| 欧美va天堂va视频va在线| 欧美在线观看视频在线| 成人黄色av电影| 国产成人免费视频网站 | 亚洲人成人一区二区在线观看| 欧美电影精品一区二区| 欧美日韩一级二级三级| 99综合电影在线视频| 国产成人av一区| 精品一区二区三区视频在线观看 | 91精品国产综合久久久蜜臀粉嫩 | 成人精品视频一区二区三区尤物| 日本不卡在线视频| 亚洲va在线va天堂| 亚洲一区二区三区三| 亚洲欧美区自拍先锋| 中文字幕亚洲视频| 国产精品久久久久久亚洲伦| 欧美国产一区视频在线观看| 久久综合久久鬼色中文字| 欧美成人激情免费网| 日韩一卡二卡三卡国产欧美| 91精品国产欧美一区二区18 | 成人黄色一级视频| 大胆亚洲人体视频| 99久久伊人网影院| 色综合久久久久| 欧美午夜在线一二页| 欧美日韩成人综合在线一区二区| 欧美日韩在线综合| 欧美一区二区在线免费观看| 欧美一级久久久久久久大片| 日韩视频永久免费| 26uuu另类欧美| 国产欧美精品在线观看| 中文字幕第一页久久| 国产精品萝li| 亚洲美女一区二区三区| 亚洲一区二区三区在线播放| 亚洲va欧美va人人爽| 美女精品一区二区| 成人综合在线视频| 色屁屁一区二区| 制服丝袜亚洲网站| 久久久国产精华| 亚洲欧美一区二区久久| 天天综合天天综合色| 激情综合网激情| av一二三不卡影片| 欧美日韩亚洲不卡| 欧美大片顶级少妇| 欧美国产一区二区| 亚洲一区二区精品久久av| 免费观看一级特黄欧美大片| 国产另类ts人妖一区二区| 91麻豆精品秘密| 26uuu精品一区二区| 一区二区三区蜜桃| 精品亚洲免费视频| 色综合天天综合在线视频|