JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
tweak hand caption and comments
authorJason Woofenden <jason@jasonwoof.com>
Thu, 3 Nov 2011 02:38:35 +0000 (22:38 -0400)
committerJason Woofenden <jason@jasonwoof.com>
Thu, 3 Nov 2011 02:38:35 +0000 (22:38 -0400)
client.coffee
index.html

index 139158d..5459c78 100644 (file)
@@ -201,7 +201,7 @@ initialize_cards = () ->
 
        update_pile_views()
 
 
        update_pile_views()
 
-# also makes sure all non-piled cards are instantiated FIXME rename
+# also makes sure all non-piled cards are instantiated
 update_pile_views = ->
        ps = {}
        for card in state.cards
 update_pile_views = ->
        ps = {}
        for card in state.cards
@@ -253,7 +253,7 @@ init = ->
 
        state = window.game_model.new me
        state.on 'move', (agent, card, x, y, z, pile) ->
 
        state = window.game_model.new me
        state.on 'move', (agent, card, x, y, z, pile) ->
-               update_pile_views()
+               update_pile_views() # ensures instantiation of all visible cards
                if state.cards[card].view? # the card is visible
                        # show it face down if it's in the other player's hand
                        state.cards[card].view.toggleClass 'your_hand', in_your_hand state.cards[card]
                if state.cards[card].view? # the card is visible
                        # show it face down if it's in the other player's hand
                        state.cards[card].view.toggleClass 'your_hand', in_your_hand state.cards[card]
index 83e4324..1127b5b 100644 (file)
@@ -19,7 +19,7 @@
                <div id="loading-card" class="card">
                        <div class="pile_caption">Loading...</div>
                </div>
                <div id="loading-card" class="card">
                        <div class="pile_caption">Loading...</div>
                </div>
-               <div id="my_side">Cards in this green area (besides the piles on the right) always appear face-down to the other player.</div>
+               <div id="my_side">Cards in this green area (except the two piles on the right) always appear face-down to the other player.</div>
        </div>
 </body>
 </html>
        </div>
 </body>
 </html>