Rubicon Forum
Welcome, Guest. Please login or register.
November 21, 2009, 02:06:39 PM

Login with username, password and session length
Search:     Advanced search
Undeletable components are now shaded blue when loading a level in.
4293 Posts in 209 Topics by 2414 Members
Latest Member: Cubeinman
* Home Help Search Login Register
+  Rubicon Forum
|-+  Playing the Game
| |-+  Showcase (Moderator: Bucky)
| | |-+  Stream pattern matcher
« previous next »
Pages: [1] Print
Author Topic: Stream pattern matcher  (Read 312 times)
Rene
Director
*****
Posts: 523


View Profile Email
Stream pattern matcher
« on: September 24, 2009, 08:13:47 PM »


Here is a simple device that can detect a pattern in a stream of crates/barrels:

sutitud

The top device detects a pattern of 3 consecutive crates followed by a crate with two spaces inbetween. The bottom device detects a 1-2-1 pattern.
The pattern matcher only detects the presence of crates, not the absence. That is, the matcher will still trigger if there are crates in the gaps.
It does detect overlapping patterns correctly.

To see it in action in a solution, have a look at: kixuzuc (solution to livadul)


Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Rubicon Forum | Powered by SMF 1.0.8.
© 2001-2005, Lewis Media. All Rights Reserved.
Valid XHTML 1.0! Valid CSS!