powered by
Transforms an absolute position (i.e., seat at the table) into a relative position (i.e., seats behind the dealer)
transformToRelative(nPlayers, position, j)
number of hands to deal as integer in {2, ... , 9}
dealer position as integer in {2, ..., nPlayers}
absolute position of a player as integer in {1, 2, ... , nPlayers}
k : relative position of a player as integer in {1, 2, ... , nPlayers}
# NOT RUN { transformToRelative(9,9,9) transformToRelative(9,9,8) transformToRelative(9,1,9) transformToRelative(9,5,2) # }
Run the code above in your browser using DataLab