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: 246

Views: 251

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: Marble fight
Rating: 5
Filesize: 23.33 kB
Downloads: 1060
Comments: 1
Ratings: 1
Date added: 2021/06/10 10:00:17
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: PID Toy
Rating: 5
Filesize: 5.81 kB
Downloads: 198
Comments: 3
Ratings: 1
Date added: 2016/12/13 16:22:57
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: The No Variables Marble Starter
Rating: 5
Filesize: 27.21 kB
Downloads: 645
Comments: 0
Ratings: 1
Date added: 2015/02/14 19:17:09
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: 1353
Comments: 5
Ratings: 6
Date added: 2009/05/06 19:40:50
Made with: Phun
Rating: rated 6.7
download
Title: Car Power Meter
Rating: 6.5
Filesize: 495.18 kB
Downloads: 1179
Comments: 5
Ratings: 4
Date added: 2014/08/26 00:43:22
Made with: Algodoo v2.1.0
Rating: rated 6.5
download
Title: Variables para EspaƱoles!
Rating: 5
Filesize: 20.34 kB
Downloads: 235
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.