Steve on Image Processing with MATLAB

Image processing concepts, algorithms, and MATLAB


Steve on Image Processing with MATLAB has been archived and will not be updated.

Saturday morning fun with Cody

Early this morning my wife found me in the family room, typing away at my laptop. She glimpsed this diagram on my screen and asked if I was playing chess.

"I'm doing MATLAB, Cody, and chess at the same time," I responded. She gave me the "I have a weird husband" look and left to get her coffee.

You've probably heard of MATLAB and chess. If you haven't heard of Cody, it's an entertaining new ... umm ... game? ... on MATLAB Central. How to describe it? Well, there are bite-size (byte-size?) MATLAB programming puzzles, 248 of them so far. Then there are the players, almost 1,400 of them. Finally, there are the puzzle solutions, some 37,000 of them, created by the players.

I knew about the Cody project while it was under development, but I didn't pay too much attention to it until it went live a couple of weeks ago. I tried it out for the first time on Ground Hog's Day, and by the weekend I was just about addicted.

Here's a puzzle I solved just now. It was created by MathWorker and fellow blogger Doug Hull, who has been creating Cody puzzles based on Project Euler.

Suppose I click on the "Solve This Now!" button and try this solution:

Then I will see that my solution has failed the test suite that Doug created for this problem.

At this point I can think about what I did wrong and try again. (Readers, do you know what's wrong with my solution and how to correct it?)

Newcomers to Cody are eased into the game with simple puzzles like this:

I could not resist entering this tongue-in-cheek solution:

Speaking of tongue-in-cheek, what do you think about the cyclist's approach to marriage and to computing the volume of a common food item? The cyclist can be serious, too. There are already more than 150 puzzles created by the MATLAB community.

Speaking of the MATLAB community, since I started writing this blog post, ten solutions have already been entered for my new Eight Queens Solution Checker problem.

What's the matter with you people?? Don't you have anything better to do on Saturday morning? Oh ... wait ...

Anyway, I'm working on a set of Cody puzzles just for you, dear image processing blog readers. Stay tuned!

Published with MATLAB® 7.13

  • print


要发表评论,请点击 此处 登录到您的 MathWorks 帐户或创建一个新帐户。