breadth-first traversal of grid is working!

an array of token groups is calculated successfully
and it's probably fast enough.
This commit is contained in:
Jack Case
2025-08-21 18:35:10 -04:00
parent 94c9632afd
commit ee0507c805
3 changed files with 33 additions and 8 deletions

View File

@@ -10,8 +10,10 @@ var debug_label: Label
func _ready():
color_polygon = $Color
debug_label = $"Debug Label"
type = randi_range(0, 3) as token_type
match type:
func set_type(type: token_type):
self.type = type
match self.type:
token_type.TYPE_1:
color_polygon.color = Color.RED
token_type.TYPE_2: