Learn R Programming

poker (version 0.8.8)

dotTransformToAbsolute: dotTransformToAbsolute

Description

Transform a relative position (i.e., seats behind the dealer) into an absolute position (i.e., seat at the table).

Usage

dotTransformToAbsolute(nPlayers, position, k)

Arguments

nPlayers

number of hands to deal as integer in {2, ... , 9}

position

dealer position as integer in {2, ..., nPlayers}

k

relative position of a player as integer in {1, 2, ... , nPlayers}

Value

j : absolute position of a player as integer in {1, 2, ... , nPlayers}

Examples

Run this code
# NOT RUN {
dotTransformToAbsolute(9,9,0)
dotTransformToAbsolute(9,9,8)
dotTransformToAbsolute(9,1,8)
dotTransformToAbsolute(9,5,6)
# }

Run the code above in your browser using DataLab