← Home
Bouncing balls in a heptagon
Show 20 numbered balls (1 to 20) dropping from the center of a heptagon that spins 360 degrees every 5 seconds. The balls are affected by gravity and friction, collide with each other, and bounce realistically off the rotating walls; show each ball's spin via the rotation of its number. Implement all collision detection yourself.
Physics & simulation 41 / 41
▶ preview · view live runtime
169.2s
cost
$0.0254
tokens out
6.1k
tokens in
21k
▶ preview · view live runtime
80.6s
cost
$0.0136
tokens out
3.1k
tokens in
4.0k
▶ preview · view live runtime
78.5s
cost
$0.0149
tokens out
4.6k
tokens in
9.0k
▶ preview · view live runtime
166.6s
cost
$0.0148
tokens out
5.9k
tokens in
5.9k
▶ preview · view live runtime
16.1s
cost
$0.0160
tokens out
4.3k
tokens in
13k
▶ preview · view live runtime
426.3s
cost
$0.0329
tokens out
21k
tokens in
33k
▶ preview · view live runtime
178.9s
cost
$0.0281
tokens out
6.8k
tokens in
7.8k
▶ preview · view live runtime
42.4s
cost
$0.0074
tokens out
5.2k
tokens in
7.9k
▶ preview · view live runtime
253.7s
cost
$0.0119
tokens out
21k
tokens in
79k
▶ preview · view live runtime
124.3s
cost
$0.0109
tokens out
6.2k
tokens in
9.3k
▶ preview · view live runtime
112.2s
cost
$0.0158
tokens out
7.1k
tokens in
6.0k
▶ preview · view live runtime
64.2s
cost
$0.0079
tokens out
3.9k
tokens in
1.6k
▶ preview · view live runtime
59.8s
cost
$0.0008
tokens out
3.1k
tokens in
6.0k
▶ preview · view live runtime
43.0s
cost
$0.0146
tokens out
3.6k
tokens in
3.6k
▶ preview · view live runtime
80.3s
cost
$0.0141
tokens out
9.4k
tokens in
10k
▶ preview · view live runtime
98.5s
cost
$0.0023
tokens out
4.4k
tokens in
4.3k
▶ preview · view live runtime
102.7s
cost
$0.0056
tokens out
7.8k
tokens in
13k
▶ preview · view live runtime
8.5s
cost
$0.0049
tokens out
2.4k
tokens in
5.1k
▶ preview · view live runtime
118.7s
cost
$0.0450
tokens out
11k
tokens in
43k
▶ preview · view live runtime
76.3s
cost
$0.0157
tokens out
11k
tokens in
14k
▶ preview · view live runtime
204.7s
cost
$0.0070
tokens out
17k
tokens in
24k
▶ preview · view live runtime
52.3s
cost
$0.1404
tokens out
4.7k
tokens in
4.1k
▶ preview · view live runtime
67.6s
cost
$0.0112
tokens out
5.3k
tokens in
15k
▶ preview · view live runtime
110.5s
cost
$0.0025
tokens out
5.8k
tokens in
1.4k
▶ preview · view live runtime
71.2s
cost
$0.0032
tokens out
6.2k
tokens in
10k
▶ preview · view live runtime
18.9s
cost
$0.0049
tokens out
2.4k
tokens in
5.1k
▶ preview · view live runtime
40.6s
cost
$0.0268
tokens out
5.1k
tokens in
10k
▶ preview · view live runtime
41.9s
cost
$0.0016
tokens out
5.9k
tokens in
28k
▶ preview · view live runtime
301.6s
cost
$0.0091
tokens out
8.5k
tokens in
58k
▶ preview · view live runtime
8.7s
cost
$0.0000
tokens out
119
tokens in
1.6k
▶ preview · view live runtime
176.7s
cost
$0.0000
tokens out
4.7k
tokens in
16k
▶ preview · view live runtime
185.4s
cost
$0.0018
tokens out
7.0k
tokens in
13k
▶ preview · view live runtime
72.6s
cost
$0.0317
tokens out
12k
tokens in
8.3k
▶ preview · view live runtime
45.1s
cost
$0.0262
tokens out
7.7k
tokens in
6.0k
▶ preview · view live runtime
320.1s
cost
$0.0170
tokens out
25k
tokens in
62k
▶ preview · view live runtime
135.9s
cost
$0.0392
tokens out
18k
tokens in
14k
▶ preview · view live runtime
228.7s
cost
$0.0452
tokens out
12k
tokens in
4.2k
▶ preview · view live runtime
104.4s
cost
$0.0034
tokens out
3.4k
tokens in
216
gpt-4o-miniOpenAI
agent produced no index.html
See transcript →runtime
—
cost
$0.0009
tokens out
1.3k
tokens in
151
gemma-4-26b-a4b-itGoogle
agent produced no index.html
See transcript →runtime
—
cost
$0.0022
tokens out
6.5k
tokens in
1.4k
gemini-2.5-flash-liteGoogle
agent produced no index.html
See transcript →runtime
—
cost
$0.0118
tokens out
29k
tokens in
1.2k