Click here to Skip to main content
15,886,519 members
Articles / Desktop Programming / MFC

Solitaire Puzzle with Backtracking

Rate me:
Please Sign up or sign in to vote.
4.26/5 (9 votes)
10 Sep 20056 min read 80.3K   2.7K   33  
A program to play Solitaire puzzle and to seek solutions using backtracking.
/*=============================================================================

	Dialog for setting search parameters

	This file is part of Solitaire Puzzle

	Copyright � 2000 Paolo Martinoli

	LICENSE - TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
	You may copy and distribute verbatim or modified copies of this source
	code in respect of the following conditions:
	-  you must keep intact this notice and all the other notices that refer
	to the copyright of the author and to the absence of any warranty;
	-  you must cause the modified files to carry prominent notices stating
	that you changed the files and the date of any change.

	This program is distributed "AS IS" WITHOUT WARRANTY OF ANY KIND, either
	express or implied, including, but not limited to, the implied warranties
	of merchantability and fitness for a particular purpose.

	For comments, questions or suggestions please write to:
	Paolo Martinoli
	pmartinoli@programmer.net
	Via Valsolda, 169 - 00141 Rome (Italy)

=============================================================================*/

#if !defined(AFX_SEARCHPARAMDLG_H__B1CCD6C7_C5C2_4763_8CC8_4255376F0B32__INCLUDED_)
#define AFX_SEARCHPARAMDLG_H__B1CCD6C7_C5C2_4763_8CC8_4255376F0B32__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif


class SearchParamDlg : public CDialog
{
public:
	int m_shiftDir;

	SearchParamDlg(CWnd* pParent = NULL);

private:
	//{{AFX_DATA(SearchParamDlg)
	enum { IDD = IDD_SEARCHPARAM };
	CSliderCtrl	m_sliderShiftDir;
	//}}AFX_DATA

	//{{AFX_VIRTUAL(SearchParamDlg)
	virtual void DoDataExchange(CDataExchange* pDX);
	//}}AFX_VIRTUAL

	//{{AFX_MSG(SearchParamDlg)
	virtual BOOL OnInitDialog();
	virtual void OnOK();
	afx_msg BOOL OnHelpInfo(HELPINFO* pHelpInfo);
	//}}AFX_MSG

	DECLARE_MESSAGE_MAP()
};


//{{AFX_INSERT_LOCATION}}
//}}AFX

#endif

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


Written By
Software Developer (Senior) Avventure nel Mondo
Italy Italy
I have a degree in Computer Science and I've been earning my living since the early 90s by making the compiler dance.

I was born in Milan in 1963 and live in Rome since 1995.

In my spare time I sing in a vocal ensemble and play guitar and keyboard. Unfortunately, I program much better than I play. Occasionally I coordinate travel groups for the Italian tour operator Avventure nel Mondo.

https://www.paolomartinoli.it
programmer@paolomartinoli.it

Comments and Discussions