An open API service indexing awesome lists of open source software.

https://github.com/matt-dray/not-balatro

:black_joker::hearts: Shinylive app concept: drag-and-drop card gaming in R with {sortable}?
https://github.com/matt-dray/not-balatro

rstats shiny shinylive sortable sortablejs

Last synced: 10 months ago
JSON representation

:black_joker::hearts: Shinylive app concept: drag-and-drop card gaming in R with {sortable}?

Awesome Lists containing this project

README

          

# not-balatro

[![Project Status: Concept – Minimal or no implementation has been done yet, or the repository is only intended to be a limited example, demo, or proof-of-concept.](https://www.repostatus.org/badges/latest/concept.svg)](https://www.repostatus.org/#concept)
[![](https://img.shields.io/badge/Shiny-shinylive-447099?style=flat&labelColor=white&logo=Posit&logoColor=447099)](https://matt-dray.github.io/not-balatro/)

A test of [the {sortable} package](https://rstudio.github.io/sortable/) for R to see if we can use it to play drag-and-drop card games in [{shiny} apps](https://shiny.posit.co/).

[Available on the web](https://matt-dray.github.io/not-balatro/) and prepared for serverless deployment with [{shinylive}](https://posit-dev.github.io/r-shinylive/). Very much a work in progress/proof of concept.

Two rows of playing cards labelled 'pool' and 'hand'. Buttons are pressed to order the cards by suit and then by rank. Cards are dragged from the pool to the hand. An ace is dragged and the text updates from 'no hand' to 'high card'. Another ace and it changes to 'a pair'. A 'draw' button is pressed and two new cards are added to the pool. The pool is ordered again by rank. Then two queens are added to the hand and the text changes to 'two pair'.