Card

com.phasmidsoftware.number.top.Card
case class Card(number: Number, shape: Shape, color: Color, shading: Shading)

Represents a card with specific attributes.

Value parameters

color

The color attribute of the card, represented as an integer. There are three colors: red (1), green (2), and purple (3).

number

The number attribute of the card, represented as an integer from 1 to 3.

shading

The shading attribute of the card, represented as an integer. There are three shadings: solid (1), striped (2), and open (3).

shape

The shape attribute of the card, represented as an integer. There are three shapes: diamond (1), oval (2), and squiggle (3).

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product

Concrete fields

lazy override val toString: String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.