A pachinko machine's chance of a jackpot on any one spin is fixed by its design: 1 in 319.7, say, printed on the spec sheet. What is not fixed is how many spins a player gets for their money. That depends on how the pins in front of the start pocket are set on that cabinet, on the day, and it is the one figure players can measure for themselves.
The spin rate (回転率, kai-ten-ri-tsu) is the number of spins per 1,000 yen of balls. At a 4-yen corner renting 250 balls for 1,000 yen, that is the spins per 250 balls, and players use the same measure when they are playing their own balls rather than rented ones.
The border (ボーダー, boh-dah, border line) is the spin rate at which the theoretical value of play is zero, for given exchange conditions. Above it, a spin wins back on average more balls, exchanged, than it cost; below it, fewer. The exchange rate moves it: the fewer yen a ball exchanges for, the more spins per 1,000 yen it takes for the balls a spin wins to pay for the spin.
P-Lens works the border out from two figures of the machine. From core/pachinko/theoretical-value.ts:
/**
* Balls a regular-game spin wins on average. The one place a theoretical
* value starts from, for typed-in figures and simulated ones alike.
*/
export const ballsPerSpin = (figures: Figures): number => figures.payoutPerRound / figures.roundChanceOneIn
/** Spins per ¥1,000 at which the balls a spin wins, exchanged, repay what it costs. */
export const borderOf = (figures: Figures, ballValue: number): number => 1000 / (ballsPerSpin(figures) * ballValue)
roundChanceOneIn is the 1R トータル確率, one round won per so many ordinary spins over the long run, jackpots, modes and all; payoutPerRound is the 1R 平均出玉, the balls one round gains. Their quotient is the balls an ordinary spin wins on average. The border is the spin rate at which those balls, at ballValue yen each, come to 1,000 yen.
A worked example
Take a machine, invented for the arithmetic, that wins one round per 10 spins over the long run, at 140 balls a round: 14 balls a spin on average. At a 4-yen corner renting 250 balls for 1,000 yen:
| Exchange | Border (spins per ¥1,000) |
|---|
| Equal exchange, 25 balls per ¥100 (¥4.00 a ball) | 17.9 |
| 28 balls per ¥100 (about ¥3.57 a ball) | 20.0 |
At 28 balls per 100 yen, a spin wins 14 × 3.57 = 50 yen in cash on average, and 20 spins per 1,000 yen is what makes a spin cost 50 yen. A player measuring 22 spins per 1,000 yen at that parlor is playing above the border, by 50 − 1,000 ÷ 22 ≈ 4.5 yen a spin; one measuring 18 is playing below it, by about 5.6 yen a spin.
Balls won in the play change the arithmetic. A rented ball costs 4 yen; a ball the player already holds costs what it would have exchanged for. Played entirely with their own balls, a player's border at 28 balls per 100 yen comes down to the equal-exchange figure, 17.9 in the example. P-Lens counts each ball played at what it cost, so the border it shows for a play moves with the share of own balls in it.