blakewatson / sawayama-solitaire

A web version of Sawayama Solitaire.

Home Page:https://www.watsonbrosgames.com/solitaire/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Solitaire (Sawayama Rules)

This a web version of the Sawayama Solitaire mini game in Zachtronics’ Last Call BBS and the Zachtronics Solitaire Collection.

I made this so I could quickly pop open a browser tab and play a game. I’m also learning game development with PixiJS and this seemed like a good project for my skill level at the time (April 2023).

A playable version exists at https://www.watsonbrosgames.com/solitaire/.

Rules

Sawayama Solitaire follows regular Klondike rules, with the following changes:

  • The tableau is face-up but, like Klondike, only top cards or cards in a sequence can be moved.
  • Any card (not just kings) can go into an open cell.
  • The deck can only be accessed once. After all cards have been drawn, it does not reset.
  • After all the cards in the deck are gone, the spot where the deck sat becomes an open cell.
  • Cards in the foundation can not be moved back onto the tableau.

Running locally

I wanted to use the least amount of build step stuff as I could but I also wanted to use TypeScript. So I opted for using esbuild. It’s just being used for TypeScript. I’m not bundling any styles.

The project uses PixiJS for rendering the game along with Anime for animations.

Install dependencies:

npm install

Start the dev server. This will watch the project directory for changes (but you’ll still need to manually refresh the browser window to see them).

npm run watch

If you want to compile any changes to the JavaScript bundle, you can run:

npm run build

Credits

About

A web version of Sawayama Solitaire.

https://www.watsonbrosgames.com/solitaire/

License:MIT License


Languages

Language:TypeScript 85.5%Language:HTML 7.0%Language:CSS 5.3%Language:JavaScript 2.1%