加勒比久久综合,国产精品伦一区二区,66精品视频在线观看,一区二区电影

合肥生活安徽新聞合肥交通合肥房產(chǎn)生活服務(wù)合肥教育合肥招聘合肥旅游文化藝術(shù)合肥美食合肥地圖合肥社保合肥醫(yī)院企業(yè)服務(wù)合肥法律

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

時(shí)間:2025-04-26  來源:合肥網(wǎng)hfw.cc  作者:hfw.cc 我要糾錯(cuò)



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."

請(qǐng)加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp

掃一掃在手機(jī)打開當(dāng)前頁
  • 上一篇:CHC5049代做、代寫SQL編程設(shè)計(jì)
  • 下一篇:STAT4602代寫、代做Java/Python編程
  • 無相關(guān)信息
    合肥生活資訊

    合肥圖文信息
    2025年10月份更新拼多多改銷助手小象助手多多出評(píng)軟件
    2025年10月份更新拼多多改銷助手小象助手多
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)/客戶要求/設(shè)計(jì)優(yōu)化
    有限元分析 CAE仿真分析服務(wù)-企業(yè)/產(chǎn)品研發(fā)
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    急尋熱仿真分析?代做熱仿真服務(wù)+熱設(shè)計(jì)優(yōu)化
    出評(píng) 開團(tuán)工具
    出評(píng) 開團(tuán)工具
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    挖掘機(jī)濾芯提升發(fā)動(dòng)機(jī)性能
    海信羅馬假日洗衣機(jī)亮相AWE  復(fù)古美學(xué)與現(xiàn)代科技完美結(jié)合
    海信羅馬假日洗衣機(jī)亮相AWE 復(fù)古美學(xué)與現(xiàn)代
    合肥機(jī)場巴士4號(hào)線
    合肥機(jī)場巴士4號(hào)線
    合肥機(jī)場巴士3號(hào)線
    合肥機(jī)場巴士3號(hào)線
  • 短信驗(yàn)證碼 目錄網(wǎng) 排行網(wǎng)

    關(guān)于我們 | 打賞支持 | 廣告服務(wù) | 聯(lián)系我們 | 網(wǎng)站地圖 | 免責(zé)聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網(wǎng) 版權(quán)所有
    ICP備06013414號(hào)-3 公安備 42010502001045

    国产一区二区三区精品在线观看 | 国产一区高清| 亚洲性视频h| 亚洲国产欧美日韩在线观看第一区| 日韩欧美看国产| 亚洲欧洲一区| 日本不卡高清| 最新国产一区| 老司机免费视频一区二区 | 激情久久婷婷| 视频一区国产| 国产精品2区| 欧美一区视频| 国产高清不卡| 老**午夜毛片一区二区三区| 久久久蜜桃一区二区人| 日韩av一区二区在线影视| 日本视频一区二区| 欧美日韩五区| 人人爽香蕉精品| 黄色成人精品网站| 成人羞羞在线观看网站| 日本欧美韩国国产| 欧美精品国产| 日韩精品亚洲一区二区三区免费| 超级白嫩亚洲国产第一| 国产精品呻吟| jiujiure精品视频播放| 91精品国产91久久综合| 一区二区三区高清在线观看| 国产精品美女久久久久久不卡| 国产福利一区二区三区在线播放| 国产精品yjizz视频网| 狂野欧美一区| 一本色道久久精品| 午夜日韩av| 天堂美国久久| 欧美 日韩 国产一区二区在线视频| 99re8这里有精品热视频8在线 | 色综合视频一区二区三区44| 手机av在线| 色135综合网| 丝袜诱惑亚洲看片| 蜜桃av一区| 日韩在线播放一区二区| 伊人久久大香线蕉综合热线| 午夜欧美理论片| 99国产精品久久久久久久| 国产一在线精品一区在线观看| 久久狠狠婷婷| 亚洲高清不卡| 午夜久久99| 一本色道久久综合| 在线视频精品| 视频一区在线播放| 国产v日韩v欧美v| 天堂中文最新版在线中文| 97精品国产| 天天综合网站| 日本在线一区二区| 日韩精品视频网站| 亚洲乱亚洲高清| 亚洲一区 二区 三区| 成人国产精品一区二区网站| 欧美精品momsxxx| 午夜视频一区二区在线观看| 国产精品极品在线观看| 久久久xxx| 尤物网精品视频| 成人在线丰满少妇av| 中国色在线日|韩| 欧美美女被草| 日日噜噜夜夜狠狠视频欧美人 | 亚洲裸色大胆大尺寸艺术写真 | 1024成人| 丝袜美腿亚洲综合| 亚洲涩涩在线| 亚洲国产精品一区| 欧美午夜网站| 成人福利一区| 五月婷婷六月综合| 蜜桃在线一区二区三区| 97成人超碰| 综合精品一区| 日本亚洲欧美天堂免费| 私拍精品福利视频在线一区| 希岛爱理一区二区三区| 成人影视亚洲图片在线| 日韩欧乱色一区二区三区在线| 亚洲情侣在线| 精品视频一区二区三区在线观看 | 国产精品美女久久久久久不卡| 日韩av综合| 九九综合九九| 日韩欧美精品| 亚洲三级免费| 亚洲不卡在线| 成人mm视频在线观看| 天堂中文在线播放| 精品91福利视频| 亚洲欧美一区在线| sm性调教片在线观看| 美腿丝袜在线亚洲一区| 国内精品久久久久久久影视简单| 精品久久91| 视频一区二区三区中文字幕| 欧美a一级片| 日本免费精品| 午夜在线精品| 久久精品国产亚洲高清剧情介绍| 亚洲电影男人天堂| 香蕉久久网站| 欧美a视频在线| 一区二区三区四区精品视频| 牛夜精品久久久久久久99黑人| 日韩精品久久| 综合伊思人在钱三区| 999精品一区| 第四色男人最爱上成人网| 国产剧情一区| 亚洲第一偷拍| 久久中文欧美| 六月丁香久久丫| 樱桃视频成人在线观看| 国产亚洲一区二区三区不卡| 国产精品99一区二区| 免费高清视频在线一区| 日韩欧美在线精品| 国产午夜久久| 中文字幕一区二区精品区| 国产一区欧美| 久久影院亚洲| 欧美日韩一区二区综合| 欧美不卡高清一区二区三区 | 国产精品人人爽人人做我的可爱| 欧美黄色网络| 美女视频亚洲色图| 国产极品久久久久久久久波多结野| 日韩不卡一区二区| 亚洲欧美日韩国产一区二区| 欧美国产高清| 在线看片不卡| 一区二区免费不卡在线| 亚洲精品久久久| 日本在线观看不卡视频| 91精品婷婷色在线观看| 欧美成a人片免费观看久久五月天| 国产+成+人+亚洲欧洲在线 | 亚洲爱爱视频| 欧美高清视频看片在线观看| 日韩国产一区二区三区| 黑人久久a级毛片免费观看| 欧美中文字幕精在线不卡| 国产精品超碰| 久久精品国产精品亚洲精品| 久久精品在线| 久久精品国产精品亚洲精品 | 蜜臀av一区二区在线观看| 国内精品久久久久久久久电影网| 丝袜美腿一区二区三区| 日韩成人一区二区三区在线观看| 国产精选在线| 精品高清久久| 精品国产网站| 日韩欧美一区二区三区免费看| 日韩av网址大全| 日韩电影免费网站| 99久久亚洲精品| 在线精品观看| 噜噜噜躁狠狠躁狠狠精品视频| 日韩激情中文字幕| 亚洲精品**中文毛片| 久久天堂成人| 一区二区三区毛片免费| 日韩av久操| 国产精品xxx在线观看| 国产精品综合色区在线观看| 99视频一区| 日韩免费一级| 色诱色偷偷久久综合| 国产农村妇女精品一区二区| 日韩电影免费在线观看网站| 国产一区二区av在线| 黄色精品一区| 91精品国产自产精品男人的天堂 | 亚洲区综合中文字幕日日| 免费一级片91| 99精品电影| 日韩三级毛片| 日日夜夜精品视频天天综合网| 日韩一区精品视频| 成人午夜av| 亚洲日本三级| 久久国内精品自在自线400部| 爽好多水快深点欧美视频| 美女视频亚洲色图| 亚洲a级精品| 欧美成人免费全部网站| 国产精品国产一区| 欧美日韩在线播放视频|