首页
网站开发
桌面应用
管理软件
微信开发
App开发
嵌入式软件
工具软件
数据采集与分析
其他
首页
>
> 详细
代写JC4004编程、代做Python设计程序
项目预算:
开发周期:
发布时间:
要求地区:
University of Aberdeen
School of Natural and Computing Sciences
Department of Computing Science
2024 – 2025
Programming assignment – Groupwork by a team of 4-5 students
Title: JC4004 – Computational Intelligence Note: This assignment accounts for 30% of
the total mark of the course.
Deadline: Submit the assignment in MyAberdeen by 19. December 2024 at 23:00 (China time).
Information for Plagiarism and Collusion: The source code and your report may be submitted for
plagiarism check in MyAberdeen. Please refer to the slides available at MyAberdeen for more
information about avoiding plagiarism before you start working on the assessment. Excessive use
of large language models, such as ChatGPT, for writing the code or the report can also be considered
as plagiarism. In addition, submitting similar work with another group can be considered as
collusion.
Information about Extensions: According to the new extension policy of University of Aberdeen,
teachers are no longer allowed to give deadline extensions for coursework assignments. Extensions
may be requested from the school administration by e-mail: uoa-ji-enquiries@abdn.ac.uk.
Extensions require strong justifications (such as serious illness or grievance), and extension requests
should be accompanied with supporting evidence, such as a medical certificate. See also a separate
document for the extension policy. Since this assignment is a groupwork assignment, extensions
would be granted in very exceptional situations only.
page 2 of 6
Introduction
In this assignment, your task is to build an artificial intelligence game bot for playing the traditional
board game Fox and Goose. Your game bot should be able to play the game on both sides, as a fox
and as a goose. The detailed rules of the game are explained below. Please note that there are
different versions of the game: for this assignment, you should follow the rules described in this
document.
Fox and Goose is a two-player board game. One of the players is a fox trying to capture all the geese.
Another player represents the geese and tries to surround the fox so that it cannot move any more.
The game is played on a board with 33 possible locations for the fox and the geese. In the beginning,
there are 15 geese and one fox on the board, as illustrated in the Figure 1. The white pieces are the
geese, and the red piece is the fox.
The game is played in turns. In this version of the game, the fox and the geese can both move one
step horizontally, vertically, or diagonally on their turn along the lines on the board. The player
playing goose can select any of the geese on the board to move. Please note that diagonal movement
is only allowed from some of the positions, as indicated by the lines on the board.
You cannot move a piece to a position that is already taken by another piece. However, the fox can
capture (or eat) a goose by jumping over it to a free position. The captured goose is removed from
the board. It is also possible to capture multiple geese in one turn by chaining the jumps like in
Checkers. A goose cannot capture the fox. It is not mandatory to capture even if it is possible, but it
is mandatory for both the fox and the geese to make a move in their turn. Examples of legal moves
are shown in Figure 2 below.
The goal of the geese is to surround the fox so that it cannot make any legal moves anymore. The
goal of the fox is to capture all the geese. Theoretically, the minimum of four geese would be enough
to surround the fox; therefore, the fox wins when there are less than four geese left on the board.
Examples of winning the game are shown in Figure 3.
Since the fox and the geese have a different goal and follow different rules, the game is unbalanced.
Therefore, the players usually play an even number of games, swapping their roles. The player that
Figure 1. Initial positions in Fox and Goose.
page 3 of 6
wins more games is the final winner. In this assignment, your task is to implement the game logic for
both the fox and the goose.
General Guidance and Requirements
In this assignment, you are required to write a Python class Player that is able to play Fox and
Goose game through methods play_fox() and play_goose(). The current game board is
passed to the methods as a parameter, and the methods will return the next move as a fox or as a
goose, respectively. Python file TestFoxAndGoose.py will be shared to demonstrate how the game
testing framework uses the Player class.
Figure 2. Examples of legal moves for the geese (left) and the fox (right), respectively.
Figure 3. Examples of the fox winning the game (left) and the geese winning the game (right).
page 4 of 6
The board is a 2-D list object with 7 × 7 characters representing the state of the game. Characters
'F' and 'G' mark the fox and the geese, respectively. An empty position is marked with a dot '.'
and a space ' ' marks a position that is off the playing area. The board is initialised in class
FoxAndGoose in file TestFoxAndGoose.py as follows:
The play_fox() and play_goose()methods in your code should take the board as defined
above as an input parameter. As an output parameter, the method should return a list object with
two or more pairs of integers, where the first value represents the row, and the second value
represents the column on the board. The first pair is the initial position, and the second pair is the
target position. For example, return value [[3,2],[3,3]] means that the piece in the 4th row, 3rd
column will be moved to the 4th row, 4th column. Note that the numbering starts from zero: for
example, position [0,1] is the 2
nd column of the 1
st row.
The play_fox()method can return a longer list with several target positions in case the fox
captures more than just one goose in one move. For example, return value [[3,3],[3,1],
[5,3]] means that the fox first jumps from position [3,3] to position [3,1], capturing the goose
in position [3,2], and then continues to position [5,3], capturing the goose in position [4,2].
You can decide freely what kind of techniques of computational intelligence you use to implement
the game logic. You can implement additional functions and classes if necessary. However, the
Player class should interact with the game framework only through the play_fox() and
play_goose()methods, as described above. The bot should have a reasonable complexity: in the
testing phase, a time limit of 5 seconds will be applied to consider the moves. If your implementation
requires time-consuming initialisation, such as downloading a deep neural network, initialisation
should be done in the class Player constructor __init__, not the play_fox() and
play_goose()methods.
You can use code generation tools and code from external sources moderately for assisting
implementation of parts of the code, but the use of any sources or tools should be explained, and
the references should be given in the project report.
Submission Requirements
You should submit the work in the course page in MyAberdeen. Your submission should include at
least two files: file TeamXX.py that includes the Python code implementing class Player with
methods play_fox() and play_goose(), and ReportXX.pdf that is the project report. In the
file names, replace XX with team number, for example 05. As an example, we provide file Team00.py
that allows you to play the game manually with moves entered by a human user. If your code requires
any additional files to run, such as pre-trained neural network, you should include them also in your
submission.
Please note that it is your responsibility to make sure that the code in TeamXX.py works when we
test it: you should use file TestFoxAndGoose.py to import your class and to test that your code works
with the testing framework. Replace module name Team00 in module=__import__
("Team00") with your own file name without .py extension. If your code has external
dependencies requiring additional installations, they should be clearly explained in the project report
or readme file included in the submission.
Note that the game bots implemented by different groups will play against each other, so it is
essential to ensure compatibility. You should use Python 3. If you use any third-party packages such
as TensorFlow or PyTorch, we recommend using the latest stable version and to avoid using features
with known backwards compatibility problems. We suggest starting with a clean environment and to
keep track of all the installed packages and their version numbers and reporting them in the project
report or readme file.
Note that at the time of writing, the latest TensorFlow version is not compatible with the latest stable
Python release 3.13.0. Therefore, if you plan to use TensorFlow, the Python version should be 3.12.7
or earlier.
The length of the project report should be approximately 1,500 words. It is recommended to include
graphical illustrations, but screenshots of the program code should be avoided. If the code
implements some complex algorithms that are difficult to explain otherwise, flowcharts or
pseudocode can be used as tools of illustration. The report should include the following sections:
1. Introduction: about 200 words.
2. Theoretical basis, including description of the used methods and algorithms with a brief
justification why those techniques were chosen: about 600 words.
3. Implementation details, including the used libraries and e.g., an UML diagram or a list of the
essential methods and their parameters: about 300 words.
4. Conclusions, including self-reflection, difficulties faced, experiences from testing the code,
and ideas for future improvements: about 300 words.
5. Summary of the individual roles, including brief description of team members’ contributions:
about 100 words.
6. References.
If you wish the results for your group to be published in the leaderboard in MyAberdeen, please give
a name for your group in the report! page 6 of 6
Marking Criteria
The assignment will be marked based on the project report (40 marks), methodology (40 marks), and
performance (20 marks).
The project report will be marked according to the coverage of the required aspects, clarity of
presentation (including language and illustrations), consistency between the report and the
submitted code, and relevance of the references.
The methodology will be evaluated based on the suitability of the chosen methods and algorithms
for the given task, creativity (for example, combining different methods in an unconventional way),
and implementation (e.g., clarity of the source code, computational efficiency).
For performance evaluation, we will test all the submitted assignments by arranging them to play
against each other. Every submission will play against each of the other submissions twice, once as a
fox and once as a goose. The results will be aggregated in a league table, where a win gives one point,
and a loss gives zero points. The winner will be awarded 20 marks, and the other groups will be
awarded marks based on the formula:
is the mark for group
is the total points for group , and 𝑤𝑖𝑛𝑛𝑒𝑟 is the total points for
the winner of the league.
Note that if both game bots repeat moves back and forth to the same position, the game may end in
a deadlock situation. To resolve deadlocks, the maximum number of moves is set to 1000. If the game
ends without a winner due to a deadlock, both players will be awarded zero points.
Contact
For any questions or clarifications, you can contact the course teachers: Dr Jari Korhonen
(jari.korhonen@abdn.ac.uk) for AI, and Dr Yongchao Huang (yuan.wen@abdn.ac.uk) for CS.
软件开发、广告设计客服
QQ:99515681
邮箱:99515681@qq.com
工作时间:8:00-23:00
微信:codinghelp
热点项目
更多
代写dts207tc、sql编程语言代做
2024-12-25
cs209a代做、java程序设计代写
2024-12-25
cs305程序代做、代写python程序...
2024-12-25
代写csc1001、代做python设计程...
2024-12-24
代写practice test preparatio...
2024-12-24
代写bre2031 – environmental...
2024-12-24
代写ece5550: applied kalman ...
2024-12-24
代做conmgnt 7049 – measurem...
2024-12-24
代写ece3700j introduction to...
2024-12-24
代做adad9311 designing the e...
2024-12-24
代做comp5618 - applied cyber...
2024-12-24
代做ece5550: applied kalman ...
2024-12-24
代做cp1402 assignment - netw...
2024-12-24
热点标签
mktg2509
csci 2600
38170
lng302
csse3010
phas3226
77938
arch1162
engn4536/engn6536
acx5903
comp151101
phl245
cse12
comp9312
stat3016/6016
phas0038
comp2140
6qqmb312
xjco3011
rest0005
ematm0051
5qqmn219
lubs5062m
eee8155
cege0100
eap033
artd1109
mat246
etc3430
ecmm462
mis102
inft6800
ddes9903
comp6521
comp9517
comp3331/9331
comp4337
comp6008
comp9414
bu.231.790.81
man00150m
csb352h
math1041
eengm4100
isys1002
08
6057cem
mktg3504
mthm036
mtrx1701
mth3241
eeee3086
cmp-7038b
cmp-7000a
ints4010
econ2151
infs5710
fins5516
fin3309
fins5510
gsoe9340
math2007
math2036
soee5010
mark3088
infs3605
elec9714
comp2271
ma214
comp2211
infs3604
600426
sit254
acct3091
bbt405
msin0116
com107/com113
mark5826
sit120
comp9021
eco2101
eeen40700
cs253
ece3114
ecmm447
chns3000
math377
itd102
comp9444
comp(2041|9044)
econ0060
econ7230
mgt001371
ecs-323
cs6250
mgdi60012
mdia2012
comm221001
comm5000
ma1008
engl642
econ241
com333
math367
mis201
nbs-7041x
meek16104
econ2003
comm1190
mbas902
comp-1027
dpst1091
comp7315
eppd1033
m06
ee3025
msci231
bb113/bbs1063
fc709
comp3425
comp9417
econ42915
cb9101
math1102e
chme0017
fc307
mkt60104
5522usst
litr1-uc6201.200
ee1102
cosc2803
math39512
omp9727
int2067/int5051
bsb151
mgt253
fc021
babs2202
mis2002s
phya21
18-213
cege0012
mdia1002
math38032
mech5125
07
cisc102
mgx3110
cs240
11175
fin3020s
eco3420
ictten622
comp9727
cpt111
de114102d
mgm320h5s
bafi1019
math21112
efim20036
mn-3503
fins5568
110.807
bcpm000028
info6030
bma0092
bcpm0054
math20212
ce335
cs365
cenv6141
ftec5580
math2010
ec3450
comm1170
ecmt1010
csci-ua.0480-003
econ12-200
ib3960
ectb60h3f
cs247—assignment
tk3163
ics3u
ib3j80
comp20008
comp9334
eppd1063
acct2343
cct109
isys1055/3412
math350-real
math2014
eec180
stat141b
econ2101
msinm014/msing014/msing014b
fit2004
comp643
bu1002
cm2030
联系我们
- QQ: 9951568
© 2021
www.rj363.com
软件定制开发网!