Skip to the content

Sugoroku双六

Play backgammon and its relatives with native rules, cube and match scoring, seeded dice and replayable records.

Sugoroku is the Japanese name 双六 for games of tables. About the name

Contents

Reference · Rules, games and records

PRESETSconstant

Every named way of playing, in the order of docs/VARIANTS.md.

Import it

import { PRESETS } from "@johnmorrisdotca/sugoroku";

Definition

const PRESETS: readonly Preset[]

Examples

import { PRESETS } from "@johnmorrisdotca/sugoroku";
console.log(PRESETS);
[
  {
    key: 'backgammon',
    variant: 'backgammon',
    rules: {
      points: 1,
      cube: false,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: false
    },
    names: [
      'Backgammon',
      'Backgammon Level 2',
      'Backgammon Level 3',
      'Casual Backgammon'
    ]
  },
  {
    key: 'backgammon-3',
    variant: 'backgammon',
    rules: {
      points: 3,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Backgammon (3 Point)' ]
  },
  {
    key: 'backgammon-5',
    variant: 'backgammon',
    rules: {
      points: 5,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [
      'Backgammon (5 Point)',
      'Pro Backgammon',
      'Pro Backgammon Level 2'
    ]
  },
  {
    key: 'backgammon-7',
    variant: 'backgammon',
    rules: {
      points: 7,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Backgammon (7 Point)' ]
  },
  {
    key: 'backgammon-9',
    variant: 'backgammon',
    rules: {
      points: 9,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Backgammon (9 Point)', 'Pro Backgammon-9' ]
  },
  {
    key: 'backgammon-race',
    variant: 'backgammon-race',
    rules: {
      points: 1,
      cube: false,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: false
    },
    names: [ 'Backgammon Race', 'Backgammon Race Level 2' ]
  },
  {
    key: 'backgammon-race-5',
    variant: 'backgammon-race',
    rules: {
      points: 5,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Pro Backgammon Race' ]
  },
  {
    key: 'anti-backgammon',
    variant: 'anti-backgammon',
    rules: {
      points: 1,
      cube: false,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: false
    },
    names: [ 'Anti-Backgammon' ]
  },
  {
    key: 'nackgammon',
    variant: 'nackgammon',
    rules: {
      points: 1,
      cube: false,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: false
    },
    names: [ 'Nackgammon' ]
  },
  {
    key: 'nackgammon-3',
    variant: 'nackgammon',
    rules: {
      points: 3,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Nackgammon (3 Point)' ]
  },
  {
    key: 'nackgammon-5',
    variant: 'nackgammon',
    rules: {
      points: 5,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Nackgammon (5 Point)', 'Pro Nackgammon' ]
  },
  {
    key: 'nackgammon-7',
    variant: 'nackgammon',
    rules: {
      points: 7,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Nackgammon (7 Point)' ]
  },
  {
    key: 'nackgammon-9',
    variant: 'nackgammon',
    rules: {
      points: 9,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Nackgammon (9 Point)' ]
  },
  {
    key: 'long-gammon',
    variant: 'long-gammon',
    rules: {
      points: 1,
      cube: false,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: false
    },
    names: [ 'Long Gammon' ]
  },
  {
    key: 'long-gammon-3',
    variant: 'long-gammon',
    rules: {
      points: 3,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Long Gammon (3 Point)' ]
  },
  {
    key: 'long-gammon-5',
    variant: 'long-gammon',
    rules: {
      points: 5,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Long Gammon (5 Point)' ]
  },
  {
    key: 'long-gammon-7',
    variant: 'long-gammon',
    rules: {
      points: 7,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Long Gammon (7 Point)' ]
  },
  {
    key: 'long-gammon-9',
    variant: 'long-gammon',
    rules: {
      points: 9,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Long Gammon (9 Point)' ]
  },
  {
    key: 'hypergammon',
    variant: 'hypergammon',
    rules: {
      points: 1,
      cube: false,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: false
    },
    names: [ 'Hypergammon' ]
  },
  {
    key: 'hypergammon-3',
    variant: 'hypergammon',
    rules: {
      points: 3,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Hypergammon (3 Point)' ]
  },
  {
    key: 'hypergammon-5',
    variant: 'hypergammon',
    rules: {
      points: 5,
      cube: true,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: true
    },
    names: [ 'Hypergammon (5 Point)' ]
  },
  {
    key: 'tabula',
    variant: 'tabula',
    rules: {
      points: 1,
      cube: false,
      crawford: true,
      jacoby: false,
      beaver: false,
      gammons: false
    },
    names: [ 'Tabula' ]
  }
]

What it prints (run when this page was built)

View sourceEdit on GitHubMade from the source of @johnmorrisdotca/sugoroku 1.1.1.