removed assert test queries
This commit is contained in:
@@ -34,27 +34,6 @@ signal card_selected(card_id: int)
|
||||
signal card_played(card_id: int)
|
||||
|
||||
func _ready() -> void:
|
||||
# tests!
|
||||
# tries playing same color
|
||||
assert(_is_card_allowed(1, 3, [1, 15]) == true)
|
||||
# tries playing trump while having same color
|
||||
assert(_is_card_allowed(15, 3, [1, 15]) == false)
|
||||
# tries playing trump while not having the same color
|
||||
assert(_is_card_allowed(15, 3, [19, 15]) == true)
|
||||
# tries playing first card
|
||||
assert(_is_card_allowed(27, -1, [27, 1, 15]) == true)
|
||||
# tries playing wizard as first
|
||||
assert(_is_card_allowed(59, -1, [59, 1, 15]) == true)
|
||||
# tries playing wizard as non-first
|
||||
assert(_is_card_allowed(59, 3, [59, 1, 15]) == true)
|
||||
# tries playing wizard after first is wizard
|
||||
assert(_is_card_allowed(59, 58, [59, 1, 15]) == true)
|
||||
# tries playing numbered after first is jester
|
||||
assert(_is_card_allowed(3, 54, [3, 1, 15]) == true)
|
||||
|
||||
assert(_is_card_allowed(13, 48, [13]) == true)
|
||||
|
||||
|
||||
if hide_client_name:
|
||||
name_label.hide()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user