Contents
For fun, I tried to build a computer out of KNEX that could play the simple game
of Nim against a human. Basically, Nim is played with any number of items, I
used marbles for ease of use, and each player alternately takes a turn by taking
one to
items, where
is a predetermined limit (I used 3). The player
who takes the last item loses.
My KNEX computer worked by counting up the number of marbles that have been played, modulo 4, and then determining how many to play from this count. It worked reasonably well, except when there were mechanical errors and the marbles jumped out of the machine.
I made another version out of Legos that doesn't have the mechanical errors and is designed with almost the exact same system, except a different method for going between human and AI modes.
Here's a short image gallery of different parts of the computer.
This was originally written as kind of a joke, purporting "marbletronics" to be the way of the future in computing, I came up with the following.
Voltage, which is the potential, can be modeled by
where
is the gravitational
constant and
is the change in height that the marble can
experience. The marbletronic equivalent for the coulomb can be thought of as
one marble (or
). Thus, current is measured in marbles per
second. To then find the total power used by a marbletronic device, where
is the number of marbles per second falling through a height of
meters,

The concept of resistance can be developed. Since
,
and so

From these ideas, the rest of marbletronics can be constructed to provide the theory for efficient marble computer creation.