On 2010-09-23 09:20, IOhannes m zmoelnig wrote:
i think the main problems come from people trying to implement C-like control flow in a dataflow language like Pd. even my implementation was only trying to reproduce the algorithm you wrote down, rather than trying to figure a Pd-way to implement pong.
so i think that one is more Pd'ish. it's not trying to mimick your algorithm but rather solve the original problem.
this eventually leads to a slight difference in the output (your implementation and mine are not fully compatible), as here the py denotes the middle of the paddle rather than the lower edge.
for the sake of simplicity i used an abstraction.
masrt IOhannes