Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/swedgwood/solitaire-web
Solitaire in your browser, a learning experiment in using yew.rs
https://github.com/swedgwood/solitaire-web
game hacktoberfest rust solitaire web website yew
Last synced: 3 months ago
JSON representation
Solitaire in your browser, a learning experiment in using yew.rs
- Host: GitHub
- URL: https://github.com/swedgwood/solitaire-web
- Owner: swedgwood
- Created: 2021-07-08T13:56:04.000Z (over 3 years ago)
- Default Branch: master
- Last Pushed: 2024-02-20T01:56:17.000Z (11 months ago)
- Last Synced: 2024-02-20T22:27:24.100Z (11 months ago)
- Topics: game, hacktoberfest, rust, solitaire, web, website, yew
- Language: Rust
- Homepage: https://projects.wedg.dev/solitaire
- Size: 64.5 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Solitaire
Solitaire, written in Rust using [Yew](https://yew.rs/).
I just copied the rules from the app I was using, which referred to it as "Klondike (draw 3)".
I haven't had much experience in the whole component way of doing frontend, neither much experience with WASM, neither solitaire. So this code probably isn't that good.
Yes, it was probably a better idea to use a canvas, and Yew was probably not even needed, but who cares, this was just for fun and learning.
## Possible improvements
- Might be able to clean up animations a bit more (although I think I've reached the limit of what is possible with the current architecture)
- Mobile controls *work* (tap card to pick up, tap card to place), but could probably be improved
- There is no coded win condition, and also no kind of victory message.
- Could add sounds