19 lines
839 B
Plaintext
19 lines
839 B
Plaintext
#play-to-beat
|
|
%h4 Hand to beat:
|
|
- if @game.play_to_beat == nil
|
|
None
|
|
- else
|
|
|
|
%div.hand-type= @game.play_to_beat.play.hand_type.capitalize
|
|
%span= @game.play_to_beat.play.to_s
|
|
-# - @game.play_to_beat.play.player_cards.each do |card|
|
|
= card.to_s
|
|
%div= @game.play_to_beat.play.player.display_name
|
|
%ol#cards-to-beat
|
|
- @game.play_to_beat.play.player_cards.reverse.each_with_index do |card, index|
|
|
%li{style: "z-index: #{100 - index};"}
|
|
-# TODO: Don't hard code face cards here
|
|
%img{alt: card.rank + ' ' + card.suit,
|
|
src: "#{image_path('cards/png/' + (card.rank.gsub('J','jack').gsub('Q','queen').gsub('K','king').gsub('A','ace') + '_of_' + card.suit.downcase + 's.png').gsub('11','jack').gsub('12','queen').gsub('13','king').gsub('14','ace').gsub('15','2'))}" }
|
|
|