A Klondike-shaped deal: seven tableau columns, each with one face-up card on a run of face-down ones, the rest in the stock.
Optional
import { dealSolitaire } from '@datamoc/mwg/board';const state = dealSolitaire(1); // seeded, for a reproducible dealconsole.log(state.stock.length); // 24 - 52 minus the 28 dealt across the tableauconsole.log(state.tableau[0].up); // [{ suit: 'clubs', rank: 12 }] - one face-up card to start Copy
import { dealSolitaire } from '@datamoc/mwg/board';const state = dealSolitaire(1); // seeded, for a reproducible dealconsole.log(state.stock.length); // 24 - 52 minus the 28 dealt across the tableauconsole.log(state.tableau[0].up); // [{ suit: 'clubs', rank: 12 }] - one face-up card to start
A Klondike-shaped deal: seven tableau columns, each with one face-up card on a run of face-down ones, the rest in the stock.