Skip to content

Commit 7353d28

Browse files
Fixed some bugs.
1 parent bca24ca commit 7353d28

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/main.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ def changeBet(self, p):
323323
template.divider()
324324

325325
try:
326-
self.amount = int(raw_input("> "))
326+
self.amount = int(input("> "))
327327
except ValueError:
328328
self.deposit("Try again. Money: $%d" % self.money)
329329

@@ -342,7 +342,7 @@ def deposit(self, p):
342342
template.divider()
343343

344344
try:
345-
self.amount = int(raw_input("> "))
345+
self.amount = int(input("> "))
346346
except ValueError:
347347
self.deposit("Try again. Money: $%d" % self.money)
348348

@@ -363,7 +363,7 @@ def withdraw(self, p):
363363
template.divider()
364364

365365
try:
366-
self.amount = int(raw_input("> "))
366+
self.amount = int(input("> "))
367367
except ValueError:
368368
self.withdraw("Try again. Money In Bank: $%d" % self.moneyInBank)
369369

src/textAdventure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ def showOptions(self, descriptor, prompt, optionList, dayVariable, timeVariable,
6666
self.listOfN.append("%d" % self.n)
6767
self.n += 1
6868

69-
self.choice = raw_input("\n> ")
69+
self.choice = input("\n> ")
7070
for i in self.listOfN:
7171
if self.choice == i:
7272
return self.choice

0 commit comments

Comments
 (0)