stormdog: (Geek)
[personal profile] stormdog
I got back to Factorio for a little while yesterday evening. I love the problem solving!

I was lying in bed with Danae designing a control system in my head that would make exactly one of four machines run at a given time based on a variety of incoming binary signals. I finally decided I could have each binary input translated into a value, then I could add those values together on a single control line for the machines. Then the machines could look for a signal value within a range and turn on or off appropriately.

So I'd have to make sure the translated value for each binary input was different enough that ranges couldn't overlap. For example, if I have inputs representing the values 1, 2, and three, the logical state of signals 1 and 2 being on while 3 is off would be equivalent to signals 1 and 2 being off while 3 is on.

I first jumped to using powers of 10, translating incoming signals into 1, 10, 100, etc. Then I wondered what the lowest usable values would be, because it felt more elegant, and because moving up a factor of ten each time would limit the range of the control system if I wanted to add a lot more machines because I'd hit the maximum system value much more quickly. I started adding up numbers in my head and by summing the previous numbers in the set, got 1, 2, 4, 8, 16... And I suddenly giggled and opened my eyes and said to Danae, "I just invented binary!"
This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting

Profile

stormdog: a woman with light skin and long brown hair that cascades over one shoulder. On her other side, she is holding a large plush shark against herself. She has pink fingernails and pink cat eye glasses (Default)
MeghanIsMe

January 2025

S M T W T F S
   1234
567891011
12131415161718
19202122232425
262728293031 

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated May. 22nd, 2025 07:58 am
Powered by Dreamwidth Studios