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
- Host: GitHub
- URL: https://github.com/caneroj1/blackjackrb
- Owner: caneroj1
- Created: 2015-01-04T16:46:25.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-03-12T20:05:47.000Z (about 10 years ago)
- Last Synced: 2025-02-03T11:47:56.581Z (4 months ago)
- Language: Ruby
- Size: 207 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`
♧