【鱼币】庆祝5555积分!
本帖最后由 liuhongrun2022 于 2024-3-2 19:23 编辑庆祝5555积分(虽然和我同一时期注册的已经六七千积分了,比如某个名字七个字的人,我就不提名字了)
来了来了,btw,我就是那个人 歌者文明清理员 发表于 2024-3-1 18:39
来了来了,btw,我就是那个人
哪个人 本帖最后由 hveagle 于 2024-3-1 19:08 编辑
from random import randint
print('六六游戏V8888.66.5.1.0.456.17.0a8')
print('六六岩浆池冒险 V1.0 Mar.1st, 2024\n')
users = {}# 这里输入自己的账号
#格式:UID:[名字,级别,胜场]# 级别,胜场写0
#1.1版本将更新注册功能,不用在来写,UID格式:6**********(十一位)
print('---欢迎登录六六岩浆池冒险---')
uid = int(input('请输入UID(输入末十位即可):'))
for i in users:
if uid == i - 60000000:
print(f'\n---验证成功!你的用户名:{users}---\n')
break
else:
print('\n---验证失败!---\n')
exit()
print('---欢迎进入六六岩浆池冒险---\n')
play = True
def game(yourlevel, robotlevel, magmalevel):
print('进入岩浆池......\n')
while yourlevel > magmalevel or robotlevel > magmalevel:
add_or_sub = randint(1, 2)
a = randint(10, 99)
b = randint(10, 99)
if add_or_sub == 1:
print(f'{a} + {b} = ?\n')
c = a + b
d = int(input('请输入你的答案:'))
temp = randint(1, 100)
if temp > 20:
robotanswer = c
elif 20 > temp > 10:
robotanswer = c - 10
else:
robotanswer = c + 1
if d == c:
print('\n你答对了!\n')
yourlevel += 5
if robotanswer == c:
print('对手也答对了!\n')
robotlevel += 5
else:
print('对手答错了!对手答案:', robotanswer, '\n')
else:
print('\n你答错了!\n')
if robotanswer == c:
print('对手答对了!对手答案:', robotanswer, '\n')
robotlevel += 5
else:
print('对手也答错了!正确答案:', c, '\n')
up = randint(3, 7)
magmalevel += up
print(f'岩浆上升{up}格', '\n')
else:
if a > b:
print(f'{a} - {b} = ?\n')
c = a - b
d = int(input('请输入你的答案:'))
temp = randint(1, 100)
if temp > 20:
robotanswer = c
elif 20 > temp > 10:
robotanswer = c - 10
else:
robotanswer = c + 1
if d == c:
print('\n你答对了!\n')
yourlevel += 5
if robotanswer == c:
print('对手也答对了!\n')
robotlevel += 5
else:
print('对手答错了!对手答案:', robotanswer, '\n')
else:
print('\n你答错了!\n')
if robotanswer == c:
print('对手答对了!对手答案:', robotanswer, '\n')
robotlevel += 5
else:
print('对手也答错了!正确答案:', c, '\n')
up = randint(3, 7)
magmalevel += up
print(f'岩浆上升{up}格', '\n')
else:
print(f'{b} - {a} = ?\n')
c = b - a
d = int(input('请输入你的答案:'))
temp = randint(1, 100)
if temp > 20:
robotanswer = c
elif 20 > temp > 10:
robotanswer = c - 10
else:
robotanswer = c + 1
if d == c:
print('\n你答对了!\n')
yourlevel += 5
if robotanswer == c:
print('对手也答对了!\n')
robotlevel += 5
else:
print('对手答错了!对手答案:', robotanswer, '\n')
else:
print('\n你答错了!\n')
if robotanswer == c:
print('对手答对了!对手答案:', robotanswer, '\n')
robotlevel += 5
else:
print('对手也答错了!正确答案:', c, '\n')
up = randint(3, 7)
magmalevel += up
print(f'岩浆上升{up}格', '\n')
print(f'当前格:{yourlevel}')
print(f'对手当前格:{robotlevel}')
print(f'岩浆当前格:{magmalevel}')
if yourlevel <= magmalevel and robotlevel <= magmalevel:
print('你们同时被岩浆吞噬了!')
if yourlevel < robotlevel:
print('你成为了第2名')
elif robotlevel < yourlevel:
print('你成为了第1名')
users += 1
if users >= 10:
users = 0
users += 1
if users == 30:
if users >= 10 or users == 0:
users == 30
else:
users += 1
else:
print('你们打成了平手')
break
if robotlevel <= magmalevel:
print('对手被岩浆吞噬了!')
print('你成为了第1名')
users += 1
if users >= 10:
users = 0
users += 1
if users == 30:
if users >= 10 or users == 0:
users == 30
else:
users += 1
break
if yourlevel <= magmalevel:
print('你被岩浆吞噬了!')
print('你成为了第2名')
break
#以下是主程序
while play:
go1 = input('回车开始游戏(A查看信息,B改名):')
if go1 == 'A' or go1 == 'a':
message = users
print(f'\nUID:{uid + 60000000000}\n名字:{message}\n等级:LV {message}\n胜场:{message}局\n')
if go1 == 'B' or go1 == 'b':
message = users
new_name = input('\n请输入新名字:')
message = new_name
go2 = input('你要继续玩吗(Y/N,回到首页输入H):')
if go2 == 'Y' or go2 == 'y':
game(5, 5, 0)
elif go2 == 'H' or go2 == 'h':
print('\n')
else:
play = False 阿巴阿巴阿巴阿巴阿巴啊把 闻币而来 追上歌者*****员(隐私保护) 哈哈哈哈哈,6666向你招手 鱼币{:10_256:}
好! 假的,根本做不起泡棉胶 {:10_298:}{:10_275:} {:5_106:} 嘿嘿 第一次赶上 6 已读乱回 liuhongrun2022 发表于 2024-3-1 18:41
哪个人
666 gongxi 标题 喜欢