some final touches
This commit is contained in:
parent
0843624f17
commit
cf05072def
3 changed files with 77 additions and 101 deletions
|
|
@ -83,7 +83,7 @@ class Cave:
|
|||
old = self.cave[block.y]
|
||||
self.cave[block.y] = old[:block.x] + '#' + old[block.x + 1:]
|
||||
|
||||
@ classmethod
|
||||
@classmethod
|
||||
def create(cls, width: int, gas_pushes: str) -> Self:
|
||||
cave = []
|
||||
return cls(width, cave, cycle(gas_pushes), cycle(Pattern(pattern) for pattern in patterns))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue