Add new solitaire game ‘Midnight’
Needs ReviewPublic

Authored by huftis on Oct 13 2018, 10:04 AM.

Details

Reviewers
None
Group Reviewers
KDE Games
Summary

The game is based on an old Windows solitaire game called
‘Midnight Sunitaire’. There are four difficulties, ‘easy’,
‘medium’, ‘hard’ and ‘extreme’, with easy being the default.

For the ‘hard’ difficulty, the game seems to be identical to the
solitaire game Geoffrey. The ‘extreme’ difficulty is usually
not solvable – and doesn’t really involve much strategy
(but the others do).

The rules are: A card (perhaps with other cards on top of it) can
be moved to a card if it is 1) face up, 2) of the same suit as
the destination card and 3) one lower in value. For example, you
can put a 5 of hearts on a 6 of hearts. The suits and values on top
of the card you’re moving don’t matter. Only kings can be placed
on empty piles. The goal is to build up ascending ‘real families’
on the four foundation piles.

A solver is not implemented.

Diff Detail

Repository
R410 KPatience
Branch
add-midnight-variant (branched from master)
Lint
No Linters Available
Unit
No Unit Test Coverage
Build Status
Buildable 3910
Build 3928: arc lint + arc unit
huftis created this revision.Oct 13 2018, 10:04 AM
Restricted Application added a reviewer: KDE Games. · View Herald TranscriptOct 13 2018, 10:04 AM
Restricted Application added a subscriber: kde-games-devel. · View Herald Transcript
huftis requested review of this revision.Oct 13 2018, 10:04 AM

KPat currently crashes if you use the ‘Demo’ feature and the game runs out of valid moves. It’s easiest to test this by using the ‘Extreme’ difficulty (which is usually not solvable).

huftis updated this revision to Diff 43672.Oct 15 2018, 5:01 PM
  • Merge branch 'master' of git://anongit.kde.org/kpat into add-midnight-variant