Did you mean to give Sunshine Turing-complete magic, or did it just happen by accident?
Sunshine can generate an exact solution for formulations of the Traveling Salesman Problem where n < 40 in polynomial time by setting a bunch of dolls out in an approximation of the model and thinking about them really hard.
Less jokingly: I imagine it’s best to think of the other dolls as people. (Sunshine definitely does.) Like, yeah, if you had 200 friends, you could theoretically arrange them into a finite state machine by giving each friend a set of state transitions to perform depending on the input they receive. In practice, unless somebody is holding a gun to your head and demanding that you find an optimal solution for the Unbounded Knapsack Problem with regards to which of your belongings they should stuff into their pockets, you’re probably better off treating your friends as people first and computational nodes much, much later. Like, maybe ask them to dogpile the jerk who’s holding a gun to your head. Who even cares about computational complexity when you have two hundred friends with swords?
Even less joking, I can imagine her using dolls for procedural programming style “doll A will perform these calculations, and dolls B and C will perform further calculations on the results, then doll D will take the outputs of B and C and make a choice depending on their values” stuff eventually, but anything much more in-depth would be a bit too... Yudkowsky for my tastes.