All Downloads are FREE. Search and download functionalities are using the official Maven repository.

classes.actions.BlackjackAction.scala Maven / Gradle / Ivy

Go to download

Scala library for card-playing functionality, including games Blackjack and Thirty-One

The newest version!
package cards.classes.actions

import play.api.libs.json.{ Json, Format }

object BlackjackAction extends Enumeration {
  type BlackjackAction = Value
  val Hit, 
    Stand, 
    BuyInsurance, 
    Split, 
    DoubleDown, 
    Surrender, 
    IsDealt, 
    Bet, 
    Win, 
    Lose, 
    Tie, 
    Shuffle, 
    ShowCards, 
    InsufficientFunds, 
    GoalReached, 
    LeaveTable,
    Bust,
    Blackjack = Value
  
  implicit val format: Format[BlackjackAction] = Json.formatEnum(this)
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy