Home Reference Source Repository
import Game from 'deckster/src/models/game.js'
public class | source

Game

Represents a game with a specific set of cards available.

Member Summary

Public Members
public get

Gets the card deck used for the game.

Method Summary

Public Methods
public

createRound(players: Player[], deckSeed: string | number | number[]): Round

Creates a new round with the players specified.

Public Members

public get deck: Deck source

Gets the card deck used for the game.

Public Methods

public createRound(players: Player[], deckSeed: string | number | number[]): Round source

Creates a new round with the players specified.

Params:

NameTypeAttributeDescription
players Player[]

The players who participate in the round.

deckSeed string | number | number[]

The seed used for initially shuffling the deck.

Return:

Round