Skip to content

Drunkard (Russian: пьяница) - simple card game, modelled in Scala

Notifications You must be signed in to change notification settings

jacum/drunkard-scala

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#Drunkard

Drunkard (Russian: Пьяница) is a variation of a simple card game, also known as 'Battle' or 'War', or 'Tod und Leben' in German.

Game rules

The shuffle of 36 cards is dealt into two hands. A top card is revealed from each hand, and the hand with higher rank takes both cards, adding them to the bottom of the winning hand's deck. One exception is that Six (lowest rank) takes Ace (higher rank). Suites are ignored.

If both revealed cards are of the same rank, they are 'contested' and stay on table. New top cards are opened from the hands' decks and the winner takes all contested cards. The hand running out of card loses the game.

Implementation

This is an implementation of Drunkard game simulation.

Provided that the 'taken' cards are returned to the hand's deck in non-random order, the outcome of the game depends on the initial shuffle only.

About

Drunkard (Russian: пьяница) - simple card game, modelled in Scala

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages