⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ryg.h

📁 一个红蓝绿游戏
💻 H
字号:
// RYG.h: interface for the RYG class.
//
//////////////////////////////////////////////////////////////////////

#if !defined(AFX_RYG_H__1D0925B1_8BA1_4841_BD61_666320FC763B__INCLUDED_)
#define AFX_RYG_H__1D0925B1_8BA1_4841_BD61_666320FC763B__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000

class RYG  
{
public:
	void Play();
	RYG();
	//virtual ~RYG();
	protected:
		// facilitators
		void Welcome() const;
		void Prompt() const;
		Response Evaluate(const Guess &G) const;
		bool Winner(const Response &R) const;
		void Congratulations() const;
		void Display(const Guess &G, const Response &R)
		const;
		void GoodBye() const;
		int GetRed(const Guess &G) const;
		int GetYellow(const Guess &G) const;
		int GetGreen(const Guess &G) const;
	private:
		// data members
		Element SecretNumber;
		Guess UserInput;
		Response UserFeedback;
};

#endif // !defined(AFX_RYG_H__1D0925B1_8BA1_4841_BD61_666320FC763B__INCLUDED_)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -