Skip to content

Dev Log · Thirty One 31, Workbench, Card game, Server

Thirty One 31: a card game built twice, and what the load test on the web space showed

13 to 16 November 2026:

There is a new piece on the workbench: Thirty One 31, the three card game Germans call Schwimmen, also known as 31, Knack, Schnauz or Hosn obe. It has not been released yet. This entry records what is in place, what was measured and what is missing.

What the game is meant to do

  • Three ways to the table: quick play with four seats, a private table with a code for two to eight people, and offline against computer opponents.
  • No full screen ads and no video ads. There is exactly one banner at the top.
  • No account, no energy, no waiting, no chat. At the table there are eight fixed reactions.
  • Empty seats in online games are filled with computer opponents. The store text and the help screen say so.

The rules exist twice

The game is built in Godot 4.6.3, the server runs as PHP with MySQL on the existing web space. The server shuffles, deals and checks every move, the game only sends intended moves. So the rules exist twice in code: once in GDScript for offline play, once in PHP.

To make both decide the same way, there is a shared collection of 18 test games as a file: card order, moves, expected result. Both sides have to pass all of them. Then came the edge cases nobody writes down beforehand: what happens with 31 straight after the deal, what with two players holding 31, what if the last two players go out at the same time.

Computer opponents that do not cheat

The opponents only see their own hand and the middle. There are three ways of playing: knocking early, patiently collecting one suit, and a balanced style. This was checked with 10,000 simulated games. The requirement: no opponent may win clearly more often than the others. At the end of every round all hands are shown, so every move can be followed.

What the web space can carry

The server has no permanent process. At the table the game asks for the state every second, in the lobby every three seconds. Move deadlines and the moves of computer opponents are caught up on the next request of any player at the table.

The load test with simulated requests ran on 15 November, all from one address:

  • 50 simultaneous players: safe. Median 50 milliseconds, 95 percent of answers under 131 milliseconds, 0.1 percent dropped connections.
  • 100 simultaneous players: borderline. Median between 55 and 270 milliseconds, 95 percent between 0.3 and 1.8 seconds, varying a lot from run to run.

The test also revealed deadlocks in the database, which have since been fixed. Every move runs in a transaction with a lock on the table.

Cards after old prints

The card faces follow traditional decks. The French-suited deck goes back to the Berlin pattern, printed between 1863 and 1873 and in the public domain today. Next to it there is our own redrawing with corner indices and a German-suited deck with acorns, leaves, hearts and bells. No image generators were used for them.

The table has become a swimming pool: tiles, lane ropes and a lifebuoy in the icon. In German, a player with no lives left is "swimming", so that was the obvious choice.

What is still missing

  • Games with real players at private tables.
  • The real identifiers for banner and purchase, so far test identifiers are in use.
  • The release on Google Play.

There is no date yet. The rules can already be read on the game's page.

Warm regards from the workshopDigitale Manufaktur Rudolstadt