Logic for whether game has started
This commit is contained in:
parent
8de11ad6bb
commit
13049b9b3d
@ -42,6 +42,8 @@
|
|||||||
// Show the card TODO hide values of cards of other players
|
// Show the card TODO hide values of cards of other players
|
||||||
= [card.rank, card.suit].join(' ')
|
= [card.rank, card.suit].join(' ')
|
||||||
|
|
||||||
|
-# TODO better logic, not in view
|
||||||
|
- unless @game.status == nil
|
||||||
.table
|
.table
|
||||||
- if @game.current_hand
|
- if @game.current_hand
|
||||||
%h1 Hand to beat
|
%h1 Hand to beat
|
||||||
@ -49,6 +51,7 @@
|
|||||||
%h1 Open table
|
%h1 Open table
|
||||||
%h2
|
%h2
|
||||||
Played
|
Played
|
||||||
|
- if @game.plays.count > 0
|
||||||
- @game.plays.last.player_cards.each do |card|
|
- @game.plays.last.player_cards.each do |card|
|
||||||
= card.to_s
|
= card.to_s
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user