anvilsign in

collin/mahjong

1import type { SeatId } from '../game/types';
2
3/**
4 * Screen rotation that makes a seat's content face that player.
5 * Seat 0 sits at the bottom edge and play runs counter-clockwise on screen:
6 * 1 = right, 2 = top, 3 = left.
7 */
8export const SEAT_ROT: Record<SeatId, number> = { 0: 0, 1: -90, 2: 180, 3: 90 };
9
10export const SEAT_SLOT: Record<SeatId, string> = {
11 0: 'slot-bottom',
12 1: 'slot-right',
13 2: 'slot-top',
14 3: 'slot-left',
15};