removed assert test queries
This commit is contained in:
@@ -7,31 +7,6 @@ enum CardStyle {
|
||||
STICKMAN,
|
||||
}
|
||||
|
||||
func _ready() -> void:
|
||||
# magician wins
|
||||
assert(get_winning_card([1, 2, 3, 59], -1) == 59)
|
||||
assert(get_winning_card([1, 2, 3, 59], 3) == 59)
|
||||
assert(get_winning_card([57, 2, 3, 59], 3) == 57)
|
||||
# trump wins
|
||||
assert(get_winning_card([1, 14, 2, 3], 4) == 3)
|
||||
assert(get_winning_card([29, 14, 27, 31], 15) == 14)
|
||||
assert(get_winning_card([1, 12, 6, 31], 30) == 31)
|
||||
# joker win
|
||||
assert(get_winning_card([54, 52, 55, 53], 31) == 54)
|
||||
# other wins
|
||||
assert(get_winning_card([14, 15, 18, 13], 16) == 18)
|
||||
assert(get_winning_card([14, 15, 18, 13], 46) == 18)
|
||||
# trumpless win
|
||||
assert(get_winning_card([28, 12, 31, 13], -1) == 31)
|
||||
|
||||
# score calculation tests
|
||||
assert(BetResult.new(1, 1).get_score() == 30)
|
||||
assert(BetResult.new(0, 0).get_score() == 20)
|
||||
assert(BetResult.new(4, 4).get_score() == 60)
|
||||
assert(BetResult.new(1, 2).get_score() == -10)
|
||||
assert(BetResult.new(1, 4).get_score() == -30)
|
||||
assert(BetResult.new(4, 1).get_score() == -30)
|
||||
|
||||
func get_shuffled_cards(client_ids: Array[String], cards_to_pick: int) -> Dictionary: # Dictionary[String, Array[int]]
|
||||
var dict: Dictionary = {}
|
||||
var deck: Array[int] = full_deck.keys()
|
||||
|
||||
Reference in New Issue
Block a user