X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=client.coffee;h=774e29e197f4904742753d02a24a1ac10b0dbc35;hb=bff997aff6d7220a8183421bdff64c9a1ef352c3;hp=e49c00385efae61bb5620efc33f151b0e69843d5;hpb=f2045f8594e9e8f61aa439a9316529dafc680755;p=peach-cgt.git diff --git a/client.coffee b/client.coffee index e49c003..774e29e 100644 --- a/client.coffee +++ b/client.coffee @@ -44,13 +44,14 @@ add_card = (text, x, y) -> card.draggable stack: '.card' card.bind 'dragstop', (event, ui) -> p = card.position() - #card.children().html("(#{p.left}, #{p.top})") + # FIXME tell server (p.left, p.top) init = -> if state.auto_shuffle state.my_cards.shuffle() state.your_cards.shuffle() # FIXME have the server or other player do this state.auto_shuffle = false + # FIXME tell server left = 15 top = 450 for card in state.my_cards