Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
Administrator
/
lesson16_3
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
550106ff
authored
Nov 12, 2022
by
BellCodeEditor
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
auto save
parent
d97eb077
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
21 deletions
2
2
View file @
550106ff
...
@@ -49,28 +49,9 @@ houyi = Player("射手", "后羿")
...
@@ -49,28 +49,9 @@ houyi = Player("射手", "后羿")
yase = Hero("垭瑟")
yase = Hero("垭瑟")
print('_'*30)
print('_'*30)
print(' 游戏开始')
print(' 游戏开始')
whi
l
e Ture:
whi
t
e Ture:
print('_'*30)
print('_'*30)
choice=input('请选择技能(1攻击/2回血)')
choice=input('请选择继能(1攻击/2回血)')
if choice==q:
print('游戏结束')
beak
elif choice=='1':
houyi.combat(yase)
elif choice=='2':
houyi.cure()
else:
print('请重新选择技能(1攻击/2回血)')
continue
status=random.randint(1,3)
if status==1:
yase.cure()
else:
yase.combat(houyi)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment