Code covered by the BSD License  

Highlights from
MATLAB Contest - Peg Solitaire

2.0

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

MATLAB Contest - Peg Solitaire

by The MATLAB Contest Team

 

09 May 2007 (Updated 06 Aug 2009)

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

| 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:
recursive solver to peg solitaire contest, MATLAB Contest - Gene Splicing
MATLAB release MATLAB 7.4 (R2007a)
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

Contact us at files@mathworks.com