Procházet zdrojové kódy

add current bid to json instance

master
flavis před 6 roky
rodič
revize
696c76887e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      src/Skat/AI/Online.hs

+ 1
- 1
src/Skat/AI/Online.hs Zobrazit soubor

@@ -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) =


Načítá se…
Zrušit
Uložit