Skip to content

stankud/durak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

37 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

durak

Durak game module

About

Durak (fool) is a card game that is popular in post-Soviet states. The object of the game is to get rid of all one's cards. At the end of the game, the last player with cards in their hand is the durak.

Usage

import Game from 'durak'

const game = new Game({
  id: 'gameId1',
  playerIds: ['pid1', 'pid2']
});

const result = game.makeMove({
  type: 'attack',
  card: '6C'
});

if (!result.ok) {
  // something went wrong
}

About

Durak game module

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published