| Image: 
  Author: DrBalk Group: Collaborations Filesize: 173.84 kB Date added: 2016-10-18 Rating: 5 Downloads: 246 Views: 251 Comments: 1 Ratings: 1 Times favored: 0 Made with: Algodoo v2.1.0 Tags: 
 | Whenever an object comes close to another object of the same color, the objects pass over some of their variables to each other. This provides a simple way of interaction.
 Here: The aim is to do an automatical check of
 "connect 4", i use the picture, which Xray made, thanks to him.
 How does it work? I just describe in one direction: Left-Right.
 Two objects come close to each other, a laser with resticted
 range will trigger, if they come close enough.
 Both objects contain local variables
 Li=1 (Links=Left), Re=1 (Rechts=Right).
 If they are close enough, the right object gives his Li-value
 to the left object, and the left object gives his Re-value
 to the right. So from 1...1____1...1 it will become
 2...0_0...2 after the interaction.
 If a third object comes near, it will be from
 2...0_0...2_____1...1   to
 2...0_1...0_0...3  and a little later 3...0_0...0_0...3
 and one can see at the edge of this row, how many
 objects of the same color are "attached" to the row.
 
 in the connect-4-application it still has a little bug
 which comes from the fact that the objects do
 unwanted interations at their highest point of rebump.
 I must correct this by means of script , still to be done.
 |