MCPcopy Create free account
hub / github.com/ActiveState/code / pauseScreen

Method pauseScreen

recipes/Python/580811_Uno_TextBased/recipe-580811.py:1277–1293  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1275 return screenout
1276
1277 def pauseScreen(self):
1278 while True:
1279 self.clearShell()
1280 print('\n\t\t\tPause')
1281 print('\n\t\t1. Resume')
1282 print('\t\t2. Quit')
1283
1284 selection = str(input('\nSelection: ')).upper()
1285 while selection not in ['1', '2']:
1286 print('\nSelection Invalid')
1287 selection = str(input('\nSelection: ')).upper()
1288
1289 if selection == '1' or "":
1290 return ""
1291
1292 elif selection == '2':
1293 return "quit"
1294
1295
1296 def isComplete(self):

Callers 1

nextTurnMethod · 0.95

Calls 3

clearShellMethod · 0.95
printFunction · 0.85
strFunction · 0.85

Tested by

no test coverage detected