# besolitair

> beSolitair is

Latest version **0.0.0** (published 2022-06-25) · 0 weekly downloads

## Install

```sh
npm install besolitair
pnpm add besolitair
yarn add besolitair
bun add besolitair
```

## Health

**Score 20/100 (F)** — status: abandoned.

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.0 |
| Published | 2022-06-25 |
| First published | 2022-06-25 |
| Weekly downloads | 0 |
| TypeScript types | none |
| Module format | ESM |
| Dependencies | 7 |
| Unpacked size | 63.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | blsqtech |

## Links

- npm: https://www.npmjs.com/package/besolitair
- npm.io page: https://npm.io/package/besolitair

## Dependencies (7)

- [react](https://npm.io/package/react.md) ^18.2.0
- [react-dnd](https://npm.io/package/react-dnd.md) ^14.0.2
- [react-dom](https://npm.io/package/react-dom.md) ^17.0.0
- [fireworks-js](https://npm.io/package/fireworks-js.md) ^1.4.0
- [react-spring](https://npm.io/package/react-spring.md) ^9.2.0
- [react-router-dom](https://npm.io/package/react-router-dom.md) ^5.2.0
- [react-dnd-html5-backend](https://npm.io/package/react-dnd-html5-backend.md) ^14.0.0

## Recent versions

- 0.0.0 (latest) — 2022-06-25

## README

# Introduction 

beSolitair is

- An attempt at creating a solitair/spider implementation
- An opportunity to try [vite-js](https://vitejs.dev/)
- An opportunity to learn a few things
    - css `user-select: none;` 
    - playing cards with [unicode](https://en.wikipedia.org/wiki/Playing_cards_in_Unicode)
    - [uvu](https://twitter.com/lukeed05/status/1283133709491662848) and c8

You can have a look at the progress [here](https://mestachs.github.io/besolitair/)

# Roadmap

  - [x] render cards and decks
  - [x] generate cards and decks for spider
  - [x] single click : pick first possible move
  - [ ] add tests
  - [x] implements all the rules :
       - [x] check sequential same suite for big move
       - [x] distribute remaining cards only if all decks are filled
       - [x] handle multiple suites, can only move block of same suite
  - [x] check you completed a suite
  - [x] check you won 
  - [ ] if won then [celebrate](https://github.com/crashmax-off/fireworks-js/)
  - [ ] make it pretty and more usable
       - [ ] animation
       - [x] drag and drop
       - [ ] play card sound
       - [ ] play radio/music
  - [x] handle undo (basic)
  - [x] handle hint (highlight possible moves)
  - [x] implement auto play with some heuristics
  - [ ] setup github actions
  - [ ] add features to ease test 
      - [x] export game state, 
      - [x] load nearly solved game
      - [ ] enabled these feature only in local
  - [x] playable with keyboard (use same logic as click)

# Developement setup

```
yarn
yarn test
yarn dev
```

deployment to gh-pages

```
./deploy.sh
```

---
_Source: https://npm.io/package/besolitair · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
