国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看

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

代寫CS1010S、代做Python編程語言
代寫CS1010S、代做Python編程語言

時間:2025-04-26  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



CS1010S, Semester II, 2024/2025 — Mission 6 1
National University of Singapore
School of Computing
CS1010S: Programming Methodology
Semester II, 2024/2025
Mission 6
Role Playing Game (RPG)
Release date: 7th April 2025
Due: 21st April 2025, 23:59
Required Files
• mission06-template.py
• engine.py
Background
There are many different RPG nowadays like Final Fantasy (Figure. 1), World of Warcraft,
or Dota. In this mission, we will implement 5 character classes to run our very own
turn-based RPG!
Figure 1: Example of turn-based combat in Final Fantasy VII. Two teams of characters,
each with unique abilities and roles, take turns to attack each other.
CS1010S, Semester II, 2024/2025 — Mission 6 2
Information
This mission consists of 5 tasks.
The following consists of the ADTs that have been implemented for you within engine.py.
engine.py is the foundation for this mission, so be sure to examine the provided class
definitions in the file, which will guide you in building and expanding your own classes.
Villager ADT
A Villager represents a character with attributes such as health, mana, strength, and
intelligence. Villager serves as the base class for all classes that you will create.
Constructor
• Villager() -> villager
Mutators
• set_max_health(health) -> None
• set_max_mana(mana) -> None
• set_strength(strength) -> None
• set_intelligence(intelligence) -> None
• set_cost(cost) -> None
Accessors
• get_max_health() -> max_health
• get_health() -> health
• get_max_mana() -> max_mana
• get_mana() -> mana
• get_strength() -> strength
• get_intelligence() -> intelligence
• get_cost() -> cost
Operations
• is_alive() -> bool
• heal(amount) -> None
• use_mana(amount) -> None
• regen_mana(amount) -> None
• receive_damage(damage) -> None
• act(ally_team, enemy_team) -> None
CS1010S, Semester II, 2024/2025 — Mission 6 3
Team ADT
A Team represents a collection of villagers participating in the Trial of Ancients. It provides
utility methods to manage and interact with the villagers.
Constructor
• Team(name) -> team
Mutators
• add_villager(villager) -> None
Accessors
• get_name() -> name
• get_all_alive() -> list_of_villagers
• get_all_dead() -> list_of_villagers
• get_num_alive() -> int
• get_num_dead() -> int
• get_rand_alive() -> villager
• get_rand_dead() -> villager
Game ADT
The Game class is the core component for simulating combat between two teams in the
Trial of Ancients. It alternates turns between the two teams, allowing their champions
to take actions until one team is completely defeated.
Constructor
• Game(gold, avail_types, play, seed) -> game
Creates a new game with the specified gold, available character types, play mode
(decides whether to show each round or not), and seed for random generator.
Mutators
• simulate() -> None
Runs the simulation, alternating turns until one team wins.
CS1010S, Semester II, 2024/2025 — Mission 6 4
Task 1: Fighter (4 marks)
A Fighter is a Villager that is brave and skilled while specializing in physical combat.
Fighters possess high health and strength, allowing them to deal significant damage
to their enemies. They are resilient champions who use brute force to dominate the
battlefield. The Fighter’s actions focus on targeting and attacking a random opponent,
showcasing their prowess in direct combat.
1. Implement the class, Fighter.
The constructor does not take any parameters. The fighter has 1200 Health and
100 Strength while costing 100 Gold.
2. Implement the method, act(), which would be called when the fighter is chosen to
act during their team’s turn.
When the fighter acts, he chooses a random enemy that is alive to attack, dealing
damage equal to his strength.
Sample execution:
# Team A fighter acts on an opponent fighter
" Team A member Fighter acts ."
" Hurt enemy Fighter for 100 damage ."
" Fighter hurt with remaining hp 1100 ."
Task 2: Mage (4 marks)
A Mage is a Villager skilled in harnessing magical energy to strike their foes or replenish
their mana. Mages have lower health but possess high intelligence, allowing them to
deal significant damage. During their turn, a Mage will either attack a random enemy
using their intelligence stat, consuming mana in the process, or regenerate mana if their
reserves are low. This strategic flexibility makes them valuable in any team.
1. Implement the class Mage, inherited from the Villager class.
The constructor does not take any parameters. The mage has 800 Health,400
Intelligence, 50 max mana, while costing 200 Gold.
2. Implement the method act(), which would be called when the mage is chosen to
act during their team’s turn.
When the mage acts, he chooses a random enemy that is alive to attack, dealing
damage equal to their intelligence, while consuming 20 mana in the process. If
the mage’s mana is less than 20, the mage will instead go into meditation, which
regenerates 30 mana instead of attacking the enemy.
Sample execution:
# Team A mage acts on an opponent fighter
" Team A member Mage acts ."
" Hurt enemy Fighter for 400 damage ."
" Fighter hurt with remaining hp 800."
# Team A mage acts , but does not have enough mana
" Team A member Mage acts ." # Mage has 10 mana
" Recovered mana to 40."
CS1010S, Semester II, 2024/2025 — Mission 6 5
Task 3: Berserker (3 marks)
The Berserker class is a Fighter who becomes more dangerous as they take damage.
Berserkers thrive in high-pressure situations, delivering devastating blows when their
health is low.
1. Implement the class, Berserker, inherited from the Fighter class.
The constructor does not take any parameters. A berserker has the same base
stats as a fighter (1200 health, 100 strength) but costs 200 gold. However, They
deal double damage if their health is lower than half of their maximum health.
2. Implement the method, get_strength(), which returns double the strength if the
berserker’s health is less than or equal to half of its maximum health, and regular
strength otherwise.
Sample execution:
# Team A berserker with more than half health acts on an opponent fighter
" Team A member Berserker acts ."
" Hurt enemy Fighter for 100 damage ."
" Fighter hurt with remaining hp 1100 ."
# Team A berserker with less than half health acts on an opponent fighter
" Team A member Berserker acts ."
" Hurt enemy Fighter for 200 damage ."
" Fighter hurt with remaining hp 1000 ."
Task 4: Archmage (4 marks)
The Archmage class is a Mage capable of casting devastating area-of-effect spells. Arch mages are formidable champions who can turn the tide of battle in critical moments.
1. Implement the class, Archmage, inherited from the Mage class.
The constructor does not take any parameters. An archmage has the same base
stats as a mage (800 health, 400 intelligence, 50 mana) but costs 600 gold.
2. Implement the method, act(), which behaves differently depending on the situ ation:
• If the archmage is the last ally alive and has at least 20 mana, they cast KABOOM!,
dealing double their intelligence as damage to all enemies and consuming 20
mana.
• Otherwise, the archmage behaves like a regular mage, attacking a random
enemy or regenerating mana if their reserves are low.
Sample execution:
# Team A archmage acts , casting KABOOM ! on all opponents
" Team A member Archmage acts ."
" Only one standing . Cast KABOOM ! on every enemy alive !"
" Hurt enemy Fighter for 800 damage ."
" Hurt enemy Mage for 800 damage ."
CS1010S, Semester II, 2024/2025 — Mission 6 6
Task 5: Necromancer (4 marks)
The Necromancer class is a mage with the ability to revive fallen allies. Necromancers
bring a unique strategic advantage to their team by restoring defeated champions to
continue the fight.
1. Implement the class, Necromancer, inherited from the Mage class.
The constructor does not take any parameters. A necromancer has the same base
stats as a mage (800 health, 400 intelligence, 50 mana) but costs 400 gold.
2. Implement the method, act(), which behaves differently depending on the situ ation:
• If the necromancer has at least 20 mana and there are dead allies, they revive
a random ally with half of their maximum health rounded down to the nearest
one (e.g., 400/800 or 350/701), consuming 20 mana in the process.
• Otherwise, the necromancer behaves like a regular mage, attacking a random
enemy or regenerating mana if their reserves are low.
Sample execution:
# Team A necromancer acts , reviving an ally
" Team A member Necromancer acts ."
" Reviving Fighter with 600 hp."

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

掃一掃在手機打開當前頁
  • 上一篇:CHC5049代做、代寫SQL編程設計
  • 下一篇:STAT4602代寫、代做Java/Python編程
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    流體仿真外包多少錢_專業CFD分析代做_友商科技CAE仿真
    流體仿真外包多少錢_專業CFD分析代做_友商科
    CAE仿真分析代做公司 CFD流體仿真服務 管路流場仿真外包
    CAE仿真分析代做公司 CFD流體仿真服務 管路
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真技術服務
    流體CFD仿真分析_代做咨詢服務_Fluent 仿真
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲勞振動
    結構仿真分析服務_CAE代做咨詢外包_剛強度疲
    流體cfd仿真分析服務 7類仿真分析代做服務40個行業
    流體cfd仿真分析服務 7類仿真分析代做服務4
    超全面的拼多多電商運營技巧,多多開團助手,多多出評軟件徽y1698861
    超全面的拼多多電商運營技巧,多多開團助手
    CAE有限元仿真分析團隊,2026仿真代做咨詢服務平臺
    CAE有限元仿真分析團隊,2026仿真代做咨詢服
    釘釘簽到打卡位置修改神器,2026怎么修改定位在范圍內
    釘釘簽到打卡位置修改神器,2026怎么修改定
  • 短信驗證碼 豆包網頁版入口 破天一劍 目錄網 排行網

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

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

    国产人妻人伦精品_欧美一区二区三区图_亚洲欧洲久久_日韩美女av在线免费观看
    日本少妇高潮喷水视频| 日本一区二区三区四区五区六区| 亚洲午夜精品国产| 国内精品视频久久| 日韩中文字幕精品| 日本高清一区| 国产www精品| 天天综合色天天综合色hd| 国产伦精品一区二区三区照片| 国产精品手机在线| 免费在线黄网站| 久久精品国产成人精品| 欧美中文字幕在线视频| 久久久久久久久久久久av | 在线观看国产一区| 国产乱子伦精品无码专区| 久色乳综合思思在线视频| 精品网站在线看| 欧美大成色www永久网站婷| 蜜桃在线一区二区三区精品| 国产精品第七十二页| 国产在线xxxx| 欧美精品在线网站| 国产麻豆日韩| 中文字幕日韩一区二区三区| 97免费中文视频在线观看| 岛国视频一区| 久久66热这里只有精品| 欧美激情亚洲天堂| 久久久久久久激情| 欧美精品成人网| 国产精品久久国产精品| 国产一区免费视频| 综合色婷婷一区二区亚洲欧美国产| av一区观看| 痴汉一区二区三区| 九色综合日本| 狠狠色噜噜狠狠狠狠色吗综合| 国产精品高清免费在线观看| 国产热re99久久6国产精品| 一道本在线观看视频| 国产精彩视频一区二区| 欧洲亚洲免费视频| 国产精品久久久久久久久久久久久 | 国产精品区免费视频| 精品无码一区二区三区爱欲| 中文字幕乱码一区二区三区| 91国在线高清视频| 欧美一区二区影院| 国产精品久久久久久久久久久久冷 | 欧美国产综合在线| 欧美日本精品在线| 99福利在线观看| 奇米一区二区三区四区久久| 国产精品第七十二页| 国产精品999999| 国内精品视频一区| 亚洲三级一区| 色噜噜狠狠色综合网图区| 国产一级不卡毛片| 少妇人妻无码专区视频| 久久精品亚洲热| 91久久精品一区二区别| 日韩免费黄色av| 欧美精品一区在线播放| 久久婷婷开心| 国产在线观看不卡| 色欲av无码一区二区人妻| 国产精品网红直播| 99视频在线播放| 精品免费视频123区| 亚洲精品视频一二三| 国产精品丝袜视频| 91九色视频在线| 黄色国产小视频| 午夜精品一区二区三区在线| 国产精品久久波多野结衣| 久久一区二区精品| 国产伦视频一区二区三区| 欧美一级大胆视频| 五码日韩精品一区二区三区视频 | 久久天天躁狠狠躁夜夜av| 国产美女永久无遮挡| 日韩精品电影网站| 伊人久久青草| 国产精品国产精品| 日韩一区二区三区国产| 91精品久久久久久久久久久久久 | 久久综合中文色婷婷| 国产网站免费在线观看| 日韩日韩日韩日韩日韩| 亚洲一区二区精品在线| 久久天堂电影网| 久久www视频| 91免费的视频在线播放| 国精产品一区一区三区视频| 热草久综合在线| 视频一区二区在线观看| 中文字幕乱码一区二区三区| 久久中文字幕一区| 国产精品日日做人人爱| 久久久久亚洲精品| 国产高清精品软男同| 97欧美精品一区二区三区| 国产欧美日韩精品在线观看| 欧美精品欧美精品| 日韩欧美一区二区三区四区五区| 欧美激情视频网| 国产精品初高中精品久久| 久久久成人精品视频| 日日骚久久av| 国产a级全部精品| 久久噜噜噜精品国产亚洲综合| 99久久激情视频| 成人免费毛片播放| 丰满人妻中伦妇伦精品app| 国产欧美日韩最新| 国产日韩第一页| 国产视频一区二区视频| 免费av观看网址| 国产资源第一页| 国产又粗又长又爽视频| 欧美乱大交xxxxx潮喷l头像| 日韩欧美一区二区三区四区| 性欧美大战久久久久久久| 视频一区在线免费观看| 日韩av观看网址| 日本精品一区二区三区在线| 日韩一二三区不卡在线视频| 日韩精品 欧美| 欧美 国产 综合| 免费一级特黄特色毛片久久看| 免费亚洲一区二区| 国产午夜福利视频在线观看| 国产美女作爱全过程免费视频| 福利在线一区二区| 91传媒免费视频| 国产极品在线视频| 久久久久一区二区三区| 久久久99久久精品女同性| 国产精品区一区二区三含羞草| 国产精品对白一区二区三区| 国产精品精品久久久| 最新中文字幕久久| 性色av一区二区咪爱| 日本不卡一区二区三区四区 | 69久久夜色精品国产69乱青草 | 欧美极品少妇无套实战| 国产亚洲精品自在久久| 国产人妻互换一区二区| 成人av在线播放观看| 久久这里精品国产99丫e6| 日韩在线视频播放| 国产精品视频资源| 精品久久久久久亚洲| 亚洲欧美国产一区二区| 日韩精品成人一区二区在线观看| 欧美精品99久久| 成人欧美一区二区三区黑人免费| 久热国产精品视频一区二区三区| 日韩视频在线免费观看| 久久亚洲成人精品| 亚洲激情电影在线| 免费在线a视频| 国产奶头好大揉着好爽视频| 国产精品av网站| 国产精品免费在线免费| 亚洲一区二区三区加勒比| 日韩暖暖在线视频| 国产日韩欧美综合| 久久免费一区| 精品免费日产一区一区三区免费| 欧美一区二区三区免费视| 欧美亚洲视频一区| 草莓视频一区| 久久久精品电影| 动漫一区二区在线| 国内偷自视频区视频综合| 91精品综合视频| 国产成人精品综合久久久| 欧美精品九九久久| 欧美一区少妇| 99精彩视频| 国产精品久久久久7777| 日本一区二区三不卡| 国产欧美一区二区白浆黑人| 深夜福利日韩在线看| 亚洲欧美日韩另类精品一区二区三区 | 九九热久久66| 一区二区国产日产| 日韩欧美视频网站| 97精品久久久| 久久香蕉国产线看观看av| 日本精品免费在线观看| 国产日韩欧美二区| 国产精品视频xxx| 色狠狠久久av五月综合| 国产日韩二区| 久久久国产影院| 日本不卡一区二区三区视频 |