Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/vagyasri/counting-cards

I have created a card counting function. It will receive a card parameter, which can be a number or a string, and increment or decrement the global count variable, according to the card's value. The function will then return a string with the current count and the string `BET` if the count is positive, or `HOLD` if the count is zero or negative.
https://github.com/vagyasri/counting-cards

Last synced: 30 days ago
JSON representation

I have created a card counting function. It will receive a card parameter, which can be a number or a string, and increment or decrement the global count variable, according to the card's value. The function will then return a string with the current count and the string `BET` if the count is positive, or `HOLD` if the count is zero or negative.

Awesome Lists containing this project