Ah, yes, there were even ternary computers, using three states (1, -1 and 0) instead of two.
> While most dekatrons are decimal counters, models were also made to count in base-5 and base-12 for specific applications.
Source: https://en.m.wikipedia.org/wiki/Dekatron
I’ve personally played on the Harwell Dekatron, it’s a fun machine