Go to Post Difficult? Yeah. Extremely difficult? Some parts. Doable? It's been done. - [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
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
  #1   Spotlight this post!  
Unread 07-09-2010, 22:19
RoboMaster's Avatar
RoboMaster RoboMaster is offline
Alum, former programmer&co-captain
FRC #2472 (The Centurions)
Team Role: Mentor
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Minnesota, Twin Cities
Posts: 268
RoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant futureRoboMaster has a brilliant future
Cool project idea: LV to play a game or program

I've been thinking about this project idea; what do you think and how could it be done?

You have a LabVIEW VI play a simple computer game, analyzing the simple situations and "clicking" in the right spots to play it. Specifically, I've thought of Facebook's Bejeweled Blitz, because the computer could very quickly find rows to make. Maybe there's something easier to implement out there?

Not only would this be impressive, but it would probably be a good learning opportunity for FRC teams in advanced programing (or just more advanced than they've done so far).



Applying this to Bejeweled Blitz: (gem game where you swap two adjacent gems on a grid to make 3 in a row or more)
.
LabVIEW could look at the pixels of the screen (or a snapshot of the screen) and analyze the center pixel of each gem position, finding the color of the gem. In this way it would what the grid situation looks like.

To make moves, click events could be generated on gems that needed to be moved. (I'm personally not very knowledgeable about using event structures and generating events, though)

To decide what to do, every gem could be analyzed in a couple of ways:
-See if possible rows are near: look at similar colored gems diagonal from this gem. If there are two diagonals in a similar direction (up, down, right, left) or another similar gem next to the diagonal, move this gem next to the diagonal to make a row.
-See if a row would be made if this gem was moved in X direction: theoretically move the gem, see if two similar gems are next to it in a row.

The sliding down of new gems after a move would have to be considered. They take time to actually get into position and you can't test when gems are moving by. The simplest way would be to wait for a key press from the user signifying all gems have fallen and have stopped making any combos. You could continue analyzing gems that are not above the played row until after a short time limit. This wouldn't take into account any combos, though.


So what do you think? I don't have LabVIEW with me on a computer, so I can't look at what VIs I'd use or go more in depth on how I'd do it. Are there any other strategies for doing what needs to be done?
__________________
My engineering blog: noeticbrainwaves.blogspot.com

I'm not slacking, my code's compiling
...and I'm using LabVIEW
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
Cool little idea :D JohnFogarty NI LabVIEW 0 12-01-2010 10:41
Real cool Robot Idea Marcel Rules/Strategy 17 27-02-2006 20:21
Petition to allow us to play music. (not my idea) archiver 2000 6 23-06-2002 22:15
really cool idea (but i need a question answered) Ghetto_Child Technical Discussion 1 01-02-2002 21:59


All times are GMT -5. The time now is 11:00.

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