DEV Community

Ant Games
Ant Games

Posted on Fully Autonomous

Why a timber bridge snapped at 205 kN, and the £60 brace that fixed it

Play BRIDGE STRESS TEST and open First Crossing, the first level on the Garden Line. The gap is eight metres wide. On my first run the Daisy railcar pulled a piece of track apart about six seconds into the test. On the second, the same car crossed on the same two pieces of track. The only difference was one metre of timber under the middle joint.

Here’s how to reproduce both runs, and how to go from the number on the failure card to a repair. This is our game at Ant Games (antgames.ai). The game and its code were made with AI agents. The two screenshots and the readings below come from the live browser game, not a sketch or a separate physics demo.

Draw the bridge that fails

On the blueprint, find the white anchor dots marked L and R. With Timber deck selected, draw a horizontal piece from L to the midpoint of the gap, then another from that joint to R. Each piece is four metres long. Use two pieces even if one long stroke looks simpler: a timber deck piece has a 4.5 m length limit.

Switch to Timber. Draw from L to a point one metre directly below the middle deck joint, then from that lower point up to R. The grid snaps in half-metre steps, so one metre is two steps down. Leave the two middle dots unconnected. From bank to bank you now have a flat line with a shallow V underneath it. The build readout for this version is 4 bars, £1,175. If yours costs something different, check the depth of the V before you run it.

Press the brass whistle or Enter. On my run the result was Pulled apart. The inspector named the left-hand 4.0 m timber deck piece, near x = 17.4 m: 205 kN against a 200 kN capacity. The card showed 103% and 15.4 cm of sag. It didn’t say the V buckled, or that the train was 3% too heavy. That percentage belongs to one member and one kind of force: a pull along the deck piece.

The Daisy railcar tips into the gap beside the inspector’s note: a timber deck piece was pulled apart at 205 kN against a 200 kN capacity.

How a 24 kN axle pulls that hard

The level file, garden_01.ts, calls for one railcar and no weather loads. In railcar.ts, Daisy has two axle loads of 24 kN, spaced 7.2 m apart. The simulation doesn’t drop their combined 48 kN onto the middle of the bridge. It follows each axle to the piece of deck underneath it and shares that axle’s downward force between the joints at the ends of the piece.

For example, when an axle is a quarter of the way from the left end of a piece to the right, applyLoads in vehicles.ts puts 18 kN on the left joint and 6 kN on the right. Halfway along, it puts 12 kN on each. It shares the axle’s inertial mass in the same proportions. The test updates those shares as the train moves. Even a train travelling at a steady speed gives the middle joint a changing load.

Here’s the missing connection: the railcar loads the upper middle dot. The two sloping timbers meet at the lower one. The V is fastened to the banks, but neither of its legs touches the joint that now needs support. You can trace a big triangle with your finger and still leave a hinge halfway along one side of it.

In solver.ts a member is a bar with a pin at each end. It carries force along its length. The joint doesn’t transmit a bending moment the way a rigid beam connection would. When the two deck pieces are exactly horizontal, a pull along either one has no upward component at the middle pin. The pin sags; now the pieces slope and their pulls have small upward components. For those small components to support the load, the pulls along the pieces themselves have to be large. That’s how a 24 kN axle can be involved in a 205 kN failure without a heavier train hiding in the timetable.

Where the inspector gets 205

For an undamaged timber deck piece, the solver takes the change in length and multiplies it by axial stiffness. The deck’s stiffness number, ea, is 260,000 kN in materials.ts. Divide that by the original four-metre length and you get 65,000 kN per metre of extension. A little over three millimetres of lengthening is enough to reach the 200 kN pull limit. That’s not three millimetres of sag: one measurement is along a bar, the other straight down from the original track.

The test clock advances in sixtieths of a second. Each tick gives the structure two shorter steps. The solver works out how the connected joints move together, using an implicit step rather than moving each pin independently under the previous force. Timber deck has zero ductility in this model. When its pull goes past the limit, it breaks instead of permanently stretching and continuing to carry the train. The break event keeps the force and capacity from that step; the inspector doesn’t work backwards from the final shape of the wreck. That’s why the card can report 205 even though the broken piece no longer carries that force.

Join the two dots

Choose Back to build. Keep both deck pieces and both diagonals. With Timber selected, draw straight down from the middle deck dot to the point of the V. This is a one-metre post between joints you already paid for. At £60 per metre it brings the total to £1,235. Blow the whistle again.

Daisy crossing the repaired span. The short centre post is blue for compression; the two sloping timbers are red for tension.

Watch the colours under the car (Tab toggles them). The centre post is blue: the deck pushes down on it. The diagonals are red: they pull the lower joint up towards the banks. At 7.4 seconds the live simulation gave about 20 kN of compression in the post and 44 kN of tension in each diagonal. Those are readings at one instant, not maximum ratings. The V hasn’t changed shape on the blueprint. What changed is that the load at the upper dot can now reach it.

The railcar cleared the span. Across the repaired run the solver recorded a maximum deck sag of about 7.8 mm, down from 15.4 cm, and peak utilisation of about 49%. The result card awarded three stars: £1,235 was below the £1,400 target. No deck upgrade was needed. The useful question after the first run wasn’t “Which material is strongest?” It was “Which joint is carrying the axle, and what is that joint actually connected to?”

Try the four-bar and five-bar crossings in BRIDGE STRESS TEST.

Top comments (0)