瀏覽代碼

add current bid to json instance

master
flavis 6 年之前
父節點
當前提交
696c76887e
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/Skat/AI/Online.hs

+ 1
- 1
src/Skat/AI/Online.hs 查看文件

@@ -158,7 +158,7 @@ instance ToJSON Query where
object ["query" .= ("start_game" :: String), "trumps" .= show trumps,
"hand" .= toInt handNo, "single" .= toInt sglPlayer ]
toJSON (BidQuery hand bid) =
object ["query" .= ("bid" :: String), "whom" .= show hand ]
object ["query" .= ("bid" :: String), "whom" .= show hand, "current" .= bid]
toJSON (BidResponseQuery hand bid) =
object ["query" .= ("bid_response" :: String), "from" .= show hand ]
toJSON (AskHandQuery) =


Loading…
取消
儲存