Your task is to implement the best poker player logic! :)
- Choose a team name (PokerPenguins?)
- Fork this repository
- Add the following secrets (values will be provided by the facilitator):
- TOKEN
- PORT
- TEAMNAME (your team name - only letters, digits and dashes)
- Run the main workflow in GitHub - it will be deployed automatically
- Notify the facilitator once you are done :)
- Win
mvn quarkus:dev
Your application provides a single endpoint at the root path (/). This endpoint accepts a table object, which gives you an overview about the current state of the game. You will be able to see the other players and their bets. You can also see the community cards as well as your own cards. Using this information and given your current stack of chips, you have to decide how much you want to bet.
If all players have successfully deployed their application and registered it with the game, the dealer service will start playing tournaments over and over. Each player has a starting stack of 100 chips. The blinds will start low but increase over time in each tournament. The player who wins the tournament receives 1 point on the total scoreboard. After that, the next tournament starts automatically.
Each time a betting round starts, the dealer application will call the player bots one by one and retrieve their bets. This is a sample JSON of the table information provided to you:
{
"round": 1,
"smallBlind": 10,
"minimumBet": 20,
"minimumRaise": 40,
"pot": 0,
"activePlayer": 2,
"communityCards": [{
"rank": "10",
"suit": "hearts"
},{
"rank": "5",
"suit": "clubs"
},{
"rank": "A",
"suit": "diamonds"
}],
"players": [{
"name": "Beep bop, i'm a bot!",
"status": "active",
"stack": 990,
"bet": 10
},{
"name": "Beep bop, i'm a bot too!",
"status": "active",
"stack": 980,
"bet": 20
},{
"name": "Beep bop, i'm a bot as well!",
"status": "active",
"stack": 1000,
"bet": 0,
"cards": [{
"rank": "2",
"suit": "hearts"
},{
"rank": "J",
"suit": "clubs"
}]
}]
}
Now it's your turn! Start implementing the Strategy class to do more than just fold every turn. Or rework the whole application. You can do what you want, as long as you provide the endpoint that is registered in the game. Have fun!