Giter Club home page Giter Club logo

maumeeriverapp's Introduction

Maumee River Solitaire

About the Game

Maumee River Solitaire is based on the card game Herringbone. It is named after the Maumee River in Ohio, where I live (because just plain old "River Solitaire" is something else). Features of this version include a compact layout that changes the card size to maximize playability on any screen, an autoplay feature, and highlighting of root and duplicate cards in the river

This code uses CapacitorJS to wrap a previously written web app I wrote for mobile use. The game itself is written in Javascript and CSS.

How to Play

  • Easiest: Visit the online version on Codeberg.
  • Download maumee.apk above and sideload it to your Android device. (If you tweak the code, you can regenerate the APK by typing npm run apk.)
  • Download the code, and run the command npm run preview (You will need to have NodeJS installed.)
  • Point a web browser at the folder src/index.html, which contains the complete HTML, javascript, and CSS code.

Rules

  • Played with two standard 52-card decks.
  • Goal: Build up the eight wrap-around foundations by suit. You can play a card to the foundation by clicking on it or dragging it to the appropriate spot. The player may choose to build the foundations upward or downward starting from the base card; a blue arrow appears once the direction has been decided.
  • At the start, nineteen cards are placed on the river. These cannot be moved by the player directly.
  • Below the river are five spaces called docks, which can be played to the foundation. Empty spaces on the dock are automatically filled by the end card on the river. When the river is empty, docks can act as free spaces.
  • Below the docks are eight free spaces, which can be played to the foundation. Players can move a card from the discard to any empty free space.
  • Players can click on the deck to reveal one card at a time in the discard. The deck can be played through as many times as desired; the number on top of the deck shows the number of times it has been played through. White numbers to the right of the deck and discard piles show how many cards are in each.

Screenshots

Game in left-handed portrait orientation. Game in right-handed landscape orientation. (The cards are horizontal to make it easier to grab them.)

Interface

Autoplay Autoplay This button makes all safe moves to the foundation; other cards that could be moved to the foundation are highlighted, as is the button. Double-clicking on the button makes this run automatically every time a card is drawn. (A card is *safe* to move if its duplicate isn't in the river or on the docks.)
Undo/Redo Undo Redo Unlimited undo and redo.
Flip Layout Flip layout Switches between a left-handed and right-handed layout. This setting is remembered from session to session via a cookie.
Restart Restart Restart the current game. This cannot be undone.
New Game New Game Starts a new game.
All base cards are tinted a light brown.
Cards in the river or on the docks with a gold border have a duplicate in the river.
In autoplay mode, cards with a purple border can be played onto the foundations, but weren't played automatically because there might be a better move.

maumeeriverapp's People

Contributors

sahi1l avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.