There was an error while loading. Please reload this page.
1 parent 97d9fc4 commit e59b512Copy full SHA for e59b512
1 file changed
src/baseball/main.py
@@ -65,16 +65,17 @@ def main():
65
66
print("숫자 야구 게임을 시작합니다.")
67
68
- while(1):
+ while True:
69
try:
70
game()
71
- if regame()==1:
+ choice = regame()
72
+ if choice == 1:
73
continue
- elif regame()==2:
74
+ elif choice == 2:
75
break
76
except ValueError as e:
77
print(e)
- break
78
+ raise
79
80
if __name__ == "__main__":
81
main()
0 commit comments