View unanswered posts | View active topics It is currently Thu Sep 24, 2020 6:37 pm

 Page 1 of 1 [ 3 posts ]
 Print view Previous topic | Next topic
Solving puzzle in Rhem3 with sound sensor
Author Message
Novice

Joined: Thu Apr 17, 2008 6:04 am
Posts: 70
Location: Plymouth, Indiana, USA
Solving puzzle in Rhem3 with sound sensor
Hello,
Rhem3 is a puzzle game for pc. One of the puzzles is matching a sequence of tones. The matching is based on the duration of each tone. My old ears were having a hard time making the fine distinction that was needed. NXT and the sound sensor to the rescue! A 20 line program was all it took. It waits for an initial sound to trigger it and then graphs the volume and duration on the display. Each pixel along the horizontal axis was 30 milliseconds (3 seconds total). Armed with these graphs it was easy to make the matches and solve the puzzle. There were 8 sequences of 3 tones each. Sad to say, before using the NXT, I didn't have a single one correct.
This might represent the most practical use I've ever had for my NXT.
My son considered it cheating, but I considered it clever (in my humble opinion).

Dave

_________________
Dad (Dave) and Adam

Fri Jan 13, 2012 8:16 pm
Guru

Joined: Sun Nov 15, 2009 5:46 am
Posts: 1523
Re: Solving puzzle in Rhem3 with sound sensor
I wrote a program to solve Sudoku using rule-base algorithms, not brute force trying all possibilities. My kids said I am cheating too. But my response is: hey computer is dumb, I gave it the intelligence to solve the puzzle, so it is really me solving it (but faster)! But because of it's rule-based, I did not implment all the rules in the world, so my program can only solve about 80+ percent of all the test cases I fed it. Some rules are really hard to implement. In time, I may slowly implement the harder rules.

Fri Jan 13, 2012 9:37 pm
Moderator

Joined: Tue Sep 14, 2010 9:19 pm
Posts: 496
Re: Solving puzzle in Rhem3 with sound sensor
Though not ROBOTC, I made a rubik's cube solving program in high school to win a competition (it was friendly, so I didn't cheat or anything). I've always wanted to make a lego robot to actually solve a cube, but I've never had enough parts at the right time.

_________________
sudo rm -rf /

Fri Jan 13, 2012 11:06 pm
Display posts from previous:  Sort by
 Page 1 of 1 [ 3 posts ]

#### Who is online

Users browsing this forum: No registered users and 2 guests

 You cannot post new topics in this forumYou cannot reply to topics in this forumYou cannot edit your posts in this forumYou cannot delete your posts in this forumYou cannot post attachments in this forum

Search for:
 Jump to:  Select a forum ------------------ ROBOTC Applications    ROBOTC for LEGO MINDSTORMS       Third-party sensors    ROBOTC for CORTEX & PIC    ROBOTC for VEX IQ    ROBOTC for Arduino    Robot Virtual Worlds    Multi-Robot Communications    Issues and Bugs Competitions & Partners    Mini Urban Challenge    CS2N Robot Virtual Worlds Competitions       VEX Skyrise Competition 2014-2015       VEX Toss Up 2013-2014       FTC Block Party! 2013-2014    Competitions using VEX - BEST, TSA, VEX, and RoboFest!    FTC Programming    RoboCup Junior and Other ROBOT Competitions Virtual Brick Robotics Discussions    General Discussions    Project Discussions Off-Topic ROBOTC Forum & ROBOTC.net Suggestions/Feedback    ROBOTC Forums Suggestions/Comments    ROBOTC.net Suggestions/Comments       NXT Programming: Tips for Beginning with ROBOTC       VEX Programming: Tips for Beginning with ROBOTC    2013 Robotics Summer Of Learning       VEX Toss Up Programming Challenge       FTC Ring It Up! Programming Challenge    International Forums       Spanish Forums          ROBOTC for MINDSTORMS          ROBOTC for VEX       French Forums          ROBOTC pour Mindstorms          ROBOTC pour IFI VEX       Japanese Forums （日本語のフォーラム）       German Forums    2015 Spring Carnival Event    PLTW (Project Lead The Way)    Robotics Merit Badge    2014 Robotics Academy Summer of Learning

Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.