Financial markets are not filled with identical, perfectly rational robots. They are a mix of different traders — some patiently hunting for bargains, others chasing the latest trend, and many simply reacting to what they see others doing. In this chapter we build simple computer models of these markets, letting thousands of small, boundedly rational agents interact, and we watch how realistic price patterns emerge naturally from their collective behaviour.