Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case class ShotFired(val playerName: String, val atX: Int, val y: Int)
- val result = new ShotFired("Sean", 2, 5) match {
- case ShotFired(by, atX, atY) => by + " fired at (" + atX + "," + atY + ")"
- }
Add Comment
Please, Sign In to add comment