Browse Search Popular Register Upload Rules User list Login:
Search:
Local variables connect4

Image:
screenshot of the scene

Author: DrBalk

Group: Collaborations

Filesize: 173.84 kB

Date added: 2016-10-18

Rating: 5

Downloads: 245

Views: 249

Comments: 1

Ratings: 1

Times favored: 0

Made with: Algodoo v2.1.0

Tags:

Scene tag

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.
Please log in to rate this scene
edit
Similar scenes
Title: PID Toy
Rating: 5
Filesize: 5.81 kB
Downloads: 197
Comments: 3
Ratings: 1
Date added: 2016/12/13 16:22:57
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Overlapping Measurements Method
Rating: 5.625
Filesize: 151.38 kB
Downloads: 586
Comments: 7
Ratings: 2
Date added: 2023/09/16 22:09:54
Made with: Algodoo v2.1.0
Rating: rated 5.6
download
Title: Object Custom Variable Example
Rating: 5
Filesize: 54.44 kB
Downloads: 1257
Comments: 5
Ratings: 1
Date added: 2023/03/17 10:47:39
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: The local group
Rating: 5
Filesize: 90.6 kB
Downloads: 1666
Comments: 5
Ratings: 1
Date added: 2021/05/16 06:19:03
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Any-speed water spawn gun (Phunlet-safe!)
Rating: 6.6667
Filesize: 5.55 kB
Downloads: 1350
Comments: 5
Ratings: 6
Date added: 2009/05/06 19:40:50
Made with: Phun
Rating: rated 6.7
download
Title: Variables para EspaƱoles!
Rating: 5
Filesize: 20.34 kB
Downloads: 233
Comments: 0
Ratings: 1
Date added: 2013/07/09 09:25:07
Made with: Algodoo before v1.8.5
Rating: rated 5
download
Since I was looking at your scene, and had connect 4 on the brain, I decided to make three of my own versions of connect four. I tried not to copy, but I'm sure I was influenced by, your scene here.