Rubicon Forum
Welcome, Guest. Please login or register.
March 19, 2010, 12:42:39 PM

Login with username, password and session length
Search:     Advanced search
Forum users can use the crate icon (or [level] and [/level] tags) when writing a post, to make a direct link to a level.
4400 Posts in 211 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 507 times)
Rene
Director
*****
Posts: 553


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!