在我的主循环中使用这个类的抽签函数立即关闭游戏,没有任何错误,只要我不包括它,游戏运行良好。它确实给了我以下警告。Warning (from warnings module):
File "C:\Users\rahul\OneDrive\Documents\A level python codes\shootingGame.pyImplicit conversion to integers using __int__ is deprecated, and may be removed in a future version o