hasColor

Checks if this card has the specified color.

Return

true if the card has the specified color

Example:

if (card.hasColor("R")) {
println("Card is red!")
}

Parameters

color

The color code (W, U, B, R, G, or C for colorless)