I have a poker table with 9 seats represented as a list of players and the button position. I have to calculate the position of Hero(UTG, Middle Position, Late Position, CO, BB, SB...). Some seats could be empty, in this case the place is filled with "".
table=["Player_1","Player_2","","","Hero","","","","Player_3"]
button_position=1#Player_2 is the Button
In this case Hero is the Small Blind.
Any idea on how to solve the problem?