Liar's Poker Game - An online multiplayer card game.
Its a card game me and my friends used to play in college. Each player bets with knowelge of his cards and bets of other players. Bets are nothing but poker hands i.e. high card, pair,….flush etc. If next player thinks your bet will not be possible with cards of all players combined, then he will challenge you. If the bet doesn’t materialize, he wins, and your card count increases, if you win, his card count increases. Player is out of the game once he exceeds maximum limit of cards.
Sure, but not one decent version on the web. This game is also known as Commune which I didn’t know until I found a Wikipedia page for the same. Similar games are Liar’s Dice where bets are permutations of dice outcomes.
Game is built in Scala using Play Framework 2. Lots of Javasript was required to make the client side work in real time with the backend. Websockets, Server Sent Events and Ajax are all used. WS for real time bet communcation. SSE while players join admin player’s game and ajax to Get Player Cards or Game Status. Squeryl is used for the data access layer. Not to forget, bootstrap is used for designing simple pages of the game.