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

https://github.com/caneroj1/blackjackrb

Repo for playing blackjack in ruby
https://github.com/caneroj1/blackjackrb

Last synced: about 2 months ago
JSON representation

Repo for playing blackjack in ruby

Awesome Lists containing this project

README

        

BlackjackRb
===========

Repo for playing blackjack in ruby

this code will suffice for displaying cards for now


```
table = TTY::Table.new [["5 \xE2\x99\xA5"]]
puts table.render(:ascii, multiline: true, width: 10, resize: true) { |renderer| renderer.padding= [1, 1, 1, 2] }
```

utf-8 encodings of suits

black heart:


`\xE2\x99\xA5`


white heart:


`\xE2\x99\xA1`



black spade:


`\xE2\x99\xA0`


white spade:


`\xE2\x99\xA4`


black diamond:


`\xE2\x99\xA6`


white diamond:


`\xE2\x99\xA2`


black club:


`\xE2\x99\xA3`


white club:


`\xE2\x99\xA7`