yasuki_gui.layout.home_stack_positions#

home_stack_positions(unplaced, canvas_w, canvas_h, *, seat_at_bottom, offset, personality_row=False)[source]#

Home-row positions for a seat’s unplaced cards. unplaced is a list of (card_id, group_key) in placement order: distinct group keys take consecutive columns, and copies sharing a key stack down a single column by offset each. Returns a map of card id to (x, y).

With personality_row set, the cards land in the personalities row, centre-justified across the canvas (like the provinces); otherwise they land in the holdings row, laid out left to right from the seat’s edge behind the stronghold.