Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/asweigart/PythonStdioGames
/ __init__
Method
__init__
inprogress/dropspin.py:21–26 ·
view source on GitHub ↗
(self, size)
Source
from the content-addressed store, hash-verified
19
20
class
DropspinBoard:
21
def
__init__(self, size):
22
assert size % 2 == 0,
'Board size must be even.'
23
assert size < 100,
'Board size must be less than 100.'
24
self.size = size
25
26
self.clear()
27
28
29
def
clear(self):
Callers
nothing calls this directly
Calls
1
clear
Method · 0.95
Tested by
no test coverage detected