Cards

scalation.simulation.monte_carlo.Cards
See theCards companion object
class Cards

The Cards class is used to represent a deck of playing cards.

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def draw(): Int

Draw the top card from the deck and return it. Return -1 if no cards are left in the deck.

Draw the top card from the deck and return it. Return -1 if no cards are left in the deck.

Attributes

def shuffle(): Unit

Shuffle the deck of cards.

Shuffle the deck of cards.

Attributes

override def toString: String

Convert the card deck to a string.

Convert the card deck to a string.

Attributes

Definition Classes
Any