powered by
Transform a relative position (i.e., seats behind the dealer) into an absolute position (i.e., seat at the table).
dotTransformToAbsolute(nPlayers, position, k)
number of hands to deal as integer in {2, ... , 9}
dealer position as integer in {2, ..., nPlayers}
relative position of a player as integer in {1, 2, ... , nPlayers}
j : absolute position of a player as integer in {1, 2, ... , nPlayers}
# 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