MCPcopy Create free account
hub / github.com/geekcomputers/Python / __init__

Method __init__

PingPong/Slab.py:7–13  ·  view source on GitHub ↗
(self, win, size, pos, player, minPos, maxPos)

Source from the content-addressed store, hash-verified

5
6class Slab:
7 def __init__(self, win, size, pos, player, minPos, maxPos):
8 self.win = win
9 self.size = size
10 self.pos = pos
11 self.player = player # player = 1 or 2
12 self.minPos = minPos
13 self.maxPos = maxPos
14
15 def draw(self):
16 pygame.draw.rect(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected