Skip to content
Snippets Groups Projects
Commit 86d3abd4 authored by Alán Muñoz's avatar Alán Muñoz
Browse files

set drift as Nonetype by default

parent 27f506ad
No related branches found
No related tags found
No related merge requests found
......@@ -73,7 +73,9 @@ class Trap:
class TrapLocations:
def __init__(self, initial_location, tile_size, max_size=1200, drifts=[]):
def __init__(self, initial_location, tile_size, max_size=1200, drifts=None):
if drifts is None:
drifts = []
self.tile_size = tile_size
self.max_size = max_size
self.initial_location = initial_location
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment