Note: This project stems from me teaching myself plain javascript in 2017.
This code can be played in any modern web browser, although I tested it with Chrome. Just open labellelucie.html.
- The tableau consists of seventeen fans of three cards each with a single card counting as an eighteenth fan.
- Only the top card of each fan can be played.
- Any aces can be moved to the foundations, which are built from there.
- Cards are moved to the foundations by suit in ascending order (Ace, 2, ... Queen, King).
- Cards are moved to other fans by suit in descending order (example: 8 of clubs could be played on the 9 of clubs).
- When a fan becomes empty, it cannot be filled again.
- Once all possible moves have been exhausted, the entire tableau is reshuffled and redealt, again in fans of three with the remainder counting as a separate fan. There are only three reshuffles allowed in the game.
- The game is considered won when all cards are transferred into the foundations
This is my first JavaScript application. I learned HTML5 and JavaScript, and decided to apply what I learned to a version of solitaire that I like to play. There are a few issues I need to work out like handling window resizing and a few graphical glitches, but it otherwise works fine.
KDE-Oxygen White cards are licensed under the GNU General Public license. http://games.kde.org
Fireworks code is Copyright (C) 2011 by Paul Lewis for CreativeJS and is used with permission. See the fireworks.js file for copyright and license information. http://creativejs.com/tutorials/creating-fireworks/index.html
Everything else is written or created by Jennifer Roper, copyright (C) 2017, and is licensed as such:
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.