Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kyrylo/patience
Klondike solitaire game (playable, but unfinished)
https://github.com/kyrylo/patience
Last synced: 3 days ago
JSON representation
Klondike solitaire game (playable, but unfinished)
- Host: GitHub
- URL: https://github.com/kyrylo/patience
- Owner: kyrylo
- License: zlib
- Created: 2011-12-19T02:53:34.000Z (about 13 years ago)
- Default Branch: master
- Last Pushed: 2014-02-06T02:08:46.000Z (almost 11 years ago)
- Last Synced: 2024-12-14T23:35:23.388Z (22 days ago)
- Language: Ruby
- Homepage:
- Size: 1.48 MB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
Patience
========* [https://github.com/kyrylo/patience/](https://github.com/kyrylo/patience/ "Home page")
Description
-----------![Patience, version 0.1.1](http://img-fotki.yandex.ru/get/6205/98991937.8/0_74890_ae085989_orig "Patience, version 0.1.1")
_Patience_ is a card game (also known as Solitaire), which is written in Ruby.
The game is based on Ray, a Ruby library for games. Currenlty, _Patience_ runs
_only_ on GNU/Linux, although, I'm planning to support it on Windows.How to play
-----------The play area of _Patience_ (Solitaire) consits of four zones: Waste, Tableau,
Stock and Foundation. The goal of the game is to allocate all the cards from
Tableau to Foundation. You can drag cards from pile to pile with your mouse.
Remember, you can't drop cards anywhere: there are some rules, restricting that
mess. Brief rules:![Patience, rules](http://img-fotki.yandex.ru/get/6101/98991937.7/0_726e0_789437d8_orig "Patience, rules")
### Stock
* In the very beginning of each game comprises of 24 cards
* A click on Stock reveals its card and moves it to Waste
* You can't drag cards from Stock
* You can't drop cards onto Stock
* If Stock is empty, you can refresh it with cards from Waste (if there are any)
by clicking the former again.### Waste
* In the very beginning of each game has no cards
* You can drag cards from Waste and drop them onto Tableau
* You can't drop cards onto Waste### Tableau
* In the very beginning of the game comprises of 28 cards
* Consists of 7 piles. Each pile has `number of pile` cards
* Accepts cards from Waste and other piles from Tableau
* You can drop _only_ a King onto the freed pile
* You can move whole (valid) piles onto a proper cards
* You can drop a card onto a card in the pile, which's lower by one rank and has
suit of different color.Example:
![Correct drop](http://img-fotki.yandex.ru/get/6200/98991937.7/0_726e1_bc6edf54_orig "Correct drop")
![Wrong drop](http://img-fotki.yandex.ru/get/6200/98991937.7/0_726e3_640d9de0_orig "Wrong drop")### Foundation
* In the very beginning of each game has no cards
* Consists of 4 piles
* If the pile of Foundation is empty, it can accept only an Ace.
* If the pile of Foundation isn't empty, it will accept only cards of the same
suit, that are higher by one rank.### Winning conditions
* All the cards are in Foundation, other zones has no cards.
Requirements
------------### Runs on
* GNU/Linux
### Dependencies
* [Ruby](http://ruby-lang.org/ "Ruby")
(Tested _only_ on 1.9.3 version)* [Ray](https://github.com/Mon-Ouie/ray/ "Ray") (0.2.0)
Installation
------------### Regular GNU/Linux way
gem install patience
To launch the game:
% patience
### Irregular way
git clone git://github.com/kyrylo/patience.git patience
To launch the game:
% cd patience
% ruby bin/patienceCredits
-------* Thanks to [Bil Bas (Spooner)](https://github.com/Spooner "Bil Bas") for giving advices and answering my questions
* Thanks to [Mon Ouïe](https://github.com/Mon-Ouie "Mon Ouïe") for RayLicense
-------The project uses Zlib License. See LICENSE file for more information.