Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (14 sloc) 0.283 kb
package ch.frankel.game.dice
/**
* Something that can be "rolled" to get a random result.
*
* @tparam T Result type
*/
trait Rollable[T] {
/**
* Rolls the rollable.
*
* @return Tuple consisting of 1) the rollable itself and 2) the rolled result
*/
def roll:T
}
Jump to Line
Something went wrong with that request. Please try again.