Go to Post They may call us geeks and nerds, but deep down under that prejudice they know they want to be the hard-core, sleep-deprived, hand drill-toting, robot builders we know we are! - vijay24 [more]
Home
Go Back   Chief Delphi > Other > Chit-Chat > Games/Trivia
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #14   Spotlight this post!  
Unread 17-08-2010, 12:57
Chief Pride's Avatar
Chief Pride Chief Pride is offline
<3
AKA: James Kiefer
no team
 
Join Date: Sep 2007
Rookie Year: 2007
Location: Kalamazoo, MI
Posts: 653
Chief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond reputeChief Pride has a reputation beyond repute
Re: Guess That Image! Round 4

/no-reveal

Everyone (rtfgnow ) seems to be pretty curious how to break the parser... I would actually say it's going be more difficult than you think. Just about the only way I can imagine that would (and usually does about once a day) break the parser is timing out at chiefdelphi.com or jameskiefer.com (because I have been too lazy to handle the exceptions).

Post parsing works on regular expressions. Here are some of the regular expressions in the parser:

Code:
<hr />W{6,}<div><strong>.*?</strong><br />&nbsp;</div>W{3,}<div>(.*?)</div>
Group 1 gets the name group 2 gets the post data from Print Thread

[/\\]pos (\d+),\W{0,1}(\d+)
Group 1 is x and group 2 is y

[/\\]answer "(?<answer>[^"]+)"|guess "(?<answer>[^"]+)"
Group 'answer' is the guess
To answer Alex C's question /pos "200,300" wouldn't be recognized as a command.

Last edited by Chief Pride : 17-08-2010 at 16:29.
Reply With Quote
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Guess That Image! - Round 3 Chief Pride Jr. Games/Trivia 25 12-10-2010 23:29
Guess That Image! - Round 2 Chief Pride Jr. Games/Trivia 56 10-08-2010 12:55
Guess That Image! - Round 1 Chief Pride Jr. Games/Trivia 27 30-07-2010 12:37
Guess that game!!! thegathering Games/Trivia 11 07-08-2006 15:35
pic: guess what did that Scott Morgan Robot Showcase 11 09-05-2005 23:54


All times are GMT -5. The time now is 20:44.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi