2.0

2.0 | 4 ratings Rate this file 215 downloads (last 30 days) File Size: 400.5 KB File ID: #14937

MATLAB Contest - Peg Solitaire

by The MATLAB Contest Team

 

09 May 2007 (Updated 06 Aug 2009)

Code covered by BSD License  

All the files needed to develop and score an entry for the MATLABĀ® Programming Contest.

Download Now | Watch this File

File Information
Description

Starter kit for the 15th MATLAB Programming Contest, May 9-16, 2007.

For more information see the contest page:

http://www.mathworks.com/contest/jumping/rules.html

Acknowledgements
This submission has inspired the following:
Peg Solitaire Contest Solver, recursive solver to peg solitaire contest, MATLAB Contest - Gene Splicing
MATLAB release MATLAB 7.4 (R2007a)
Zip File Content  
Other Files getComplexity.m,
grade.m,
license.txt,
runcontest.m,
solitaireGUI.m,
solitaireGUIb.m,
solver.m,
testsuite_actual.mat,
testsuite_sample.mat
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (5)
09 May 2007 John Solar

I try and I try and I try. And you go and ruin it all by giving a bad example. I am trying to get our people to use better names for their for loop iterators and to not use reserved keywords. You went and broke both of those rules by using "i" in your grade.m

Shame on you. A simple apology and public flogging of the culprit will do. Or a home version of MATLAB.

Please, do not be a bad example again.

09 May 2007 Luke Skywalker

The GUI doesn't run on R2006b:
??? Undefined function or method 'bsxfun' for input arguments of type 'function_handle'.

solver is confusing

10 May 2007 Helen Chen

Luke - We have updated the download file. Use solitaireGUIb.m for older versions of MATLAB. See newsreader thread at http://newsreader.mathworks.com/WebX?14@sQ0ibzv8aR1@.ef55232 for more information.

John - Thanks for pointing that out. We appreciate your feedback!

Good luck to everyone! :-)

Helen

12 May 2007 xyz xyz

Backward compatibility is not considered.

06 Jun 2007 k j  
Please login to add a comment or rating.
Updates
09 May 2007

Update runcontest.m so the non-GUI version will run on old versions of MATLAB. Tested on R14sp1 (MATLAB 7.0.1).

09 May 2007

Provide a version of the GUI that works with older MATLABs (tested on R14SP1). Fix a bug in the grading function.

09 May 2007

Fix grade.m (again).

09 May 2007

Fix grade.m one more time.

18 May 2007

Add actual test suite.

06 Aug 2009

Fixed copyright line.

Tag Activity for this File
Tag Applied By Date/Time
games The MATLAB Contest Team 22 Oct 2008 09:12:21
peg The MATLAB Contest Team 22 Oct 2008 09:12:21
solitaire The MATLAB Contest Team 22 Oct 2008 09:12:21
starter kit The MATLAB Contest Team 22 Oct 2008 09:12:21
programming The MATLAB Contest Team 22 Oct 2008 09:12:21
contest The MATLAB Contest Team 22 Oct 2008 09:12:21
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com