Tractor (Card Game) AI
- 5 Devlogs
- 38 Total hours
Train an AI to play the Chinese card game Tractor/Upgrade/Shengji/升级
Train an AI to play the Chinese card game Tractor/Upgrade/Shengji/升级
This update focuses on making Tractor fully playable, adding needed game screens and polishing the overall experience.
Highlights include:
The latest version is now available on the GitHub Releases page.
There is now a start turn button while playing that keeps the current player’s hand hidden until they are ready to begin. This makes local pass-and-play much more practical by preventing players from accidentally seeing each other’s cards.
At the end of each round, a round summary screen is now shown that includes the winner, team scores, level changes, trump information, and other round details. The game over screen is also shown at the end of the game to show the winner and the final levels of each team.
This update adds support for Tractors and Consecutive Pairs, labels players’ plays and bids with their names, and includes several bug fixes.
Also, the project hasn’t shipped yet, but you can still download and try the latest version on the GitHub Releases page.
Players can now play Consecutive Pairs, including Tractors, which are pairs of cards in the same suit that are consecutive in power. This makes the game essentially* feature complete in terms of gameplay functionality.
*Some rule sets also include throws. They are not currently panned because they significantly increase implementation complexity.
This update makes the game now fully playable through the GUI and includes various bug fixes. The attached video shows the new GUI in action during a trick and a half of gameplay.
Also, the project hasn’t shipped yet, but you can still download and try the latest version on the GitHub Releases page.
I expanded the GUI to work in all phases of the game, so you now no longer need the terminal to play. It also now displays information such as the:
Added an Auto button during the drawing round that automatically passes a player’s turn if passing is their only legal move (similar to a previous terminal feature).
I implemented a card selection UI for players’ turns. I spent a lot of time polishing the hover and selection/deselection animations. The attached video shows game play of two tricks: the first with a pair lead and the second with a single-card lead. Next steps are to provide more information than just the players’ hands and to extend this functionality to the drawing/bidding and burying phases.