Ideas for visual field representation??

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Feb 2009
Posts: 3
Reputation: Carmen Smith is an unknown quantity at this point 
Solved Threads: 0
Carmen Smith Carmen Smith is offline Offline
Newbie Poster

Ideas for visual field representation??

 
0
  #1
Feb 23rd, 2009
Hi, I am working on a project that involves a simple stimulus-response agent which much navigate it's way around a 2d grid world.

Does anyone have any good ideas for ways to implement the agent's visual field? The input is a string of characters, one of them representing the position of the agent, which would be a 4x5 visual field if fed into a matrix.
The world consists of random walls with doors and hidden keys.

If I were to go with the matrix, is there an efficient way to update information from the new visual field string (which gets updated every time the agent makes a move) ?
Thanks for your help!
Reply With Quote Quick reply to this message  
Join Date: Jun 2008
Posts: 147
Reputation: GDICommander is an unknown quantity at this point 
Solved Threads: 19
GDICommander's Avatar
GDICommander GDICommander is offline Offline
Junior Poster

Re: Ideas for visual field representation??

 
0
  #2
Feb 23rd, 2009
This is not a C++ question. Just think about how you will represent it and if you have problems with C++, your post will be more likely to be solved.

For the update, do a search on the Observer design pattern. That will be a good start.
Last edited by GDICommander; Feb 23rd, 2009 at 12:44 pm.
Reply With Quote Quick reply to this message  
Join Date: Feb 2009
Posts: 3
Reputation: Carmen Smith is an unknown quantity at this point 
Solved Threads: 0
Carmen Smith Carmen Smith is offline Offline
Newbie Poster

Re: Ideas for visual field representation??

 
0
  #3
Feb 23rd, 2009
thank you GDICommander
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC