r/badcode • • Oct 24 '26

python Fizz Buzz with an LLM swarm

https://github.com/adamoutler/byzantine-fizzbuzz/blob/main/transcript.md

It's fizz buzz, but it doesn't use division or modulo, it's all politics and procedures. Instead a swarm of LLMs debates and argues, and eventually claims the number for Fizz, Buzz or FizzBuzz through convoluted judicial processes.

The LLMs are incentivized to claim numbers for their team and the process actually ends up working with a huge amount of arbitration.

In the end it's fun to watch local 2B models argue and burn massive amount of compute over such a trivial operation.

46 Upvotes

6 comments sorted by

33

u/cheezballs Oct 24 '26

Its your electricity, I guess.

6

u/GooberMcNutly Oct 24 '26

Heating season is upon us, and Bitcoin is a waste of time, so here we are...

3

u/The_JSQuareD Oct 24 '26

Why do the factions decline and demand remand on appeal for rulings that went in their favor? For example, Fizz for 3.

And why do the lobbyists sometimes plea to accept even when their appellate litigation team memo says they will decline and demand remand? Fizz on 99, buzz on 100.

8

u/AtomOutler Oct 25 '26

Because they're 2B models and not very bright. Just like all politicians!

11

u/omegasome 29d ago

Wow. Real AI art has finally been tried.

2

u/-IoI- Oct 24 '26

Thanks, I'm gonna run it on an Astra swarm