Anonymous user
Hunt The Wumpus/C++: Difference between revisions
→{{header|C++}}
(Created page with "This version is based on the original game, so it diverges a little from the task! =={{header|C++}}== <lang cpp> #include <time.h> #include <iostream> #include <sstream> typ...") |
|||
Line 48:
void msg( std::string s ) { std::cout << s; }
void msg( int i ) { std::cout << i; }
void wait()
};
Line 54:
{
public:
int
byte contains()
void clear( object o )
void clearRoom()
void setExit( int i, int e )
void populate( object o ) { obj |= o; }
Line 98:
{
private:
inOut
cave theCave;
unsigned
bool gameOver, playerWins;
|