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

Function addComputer

recipes/Python/580811_Uno_TextBased/recipe-580811.py:1423–1428  ·  view source on GitHub ↗
(gs)

Source from the content-addressed store, hash-verified

1421 return gs
1422
1423 def addComputer(gs):
1424 name = gs.getComputerName()
1425 c = ComputerPlayer(name)
1426 gs.addPlayer(c)
1427
1428 return gs
1429
1430 def removePlayer(gs):
1431 sys.stdout.write("\x1b[8;{rows};{cols}t".format(rows=32, cols=63))

Callers 1

mainMenuFunction · 0.85

Calls 3

ComputerPlayerClass · 0.85
getComputerNameMethod · 0.80
addPlayerMethod · 0.80

Tested by

no test coverage detected