Why don't that work?
//*****************************************
//code copyright to Jeff Cook, 2002.
//original text-based game.
//May 30, 2002 -
//*****************************************
#include <iostream.h>
#include <stdlib.h>
char yon;
int choice1;
int acorns=200;
int main()
{
cout<<"\nWelcome to Sugi the Hipmunk's game. Would you care to give it a spin? (Y or N)\n"; //Welcomes player and asks if they would like to play.
cin>>yon;
if(yon=='y'||'Y') //If the player hits Y for Yes, they will begin play.
{
cout<<"Great! Let's begin.\n";
cout<<"\nAs Sugi begins his happening adventure, he encounters none other than shopkeeper Harris.\n";
cout<<"You've been offered some goods. Do you:";
cout<<"\n1. Buy them for 20 acorns?\n2.Do nothing and walk away?\n3.Kill the shopkeeper and blame it on your blanky.\n";
cin>>choice1;
if(choice1==1)
{
acorns-20;
cout<<"You have: "acorns" acorns";
}
if(choice1==2)
{
cout<<"OK, you have walked away. No acorns have been subtracted.";
}
if(choice1==3)
{
cout<<"MURDER!";
return 0;
}
}
if(yon=='n'||'N') //When player hits N for No, kill the program.
{
cout<<"Goodbye.";
system("PAUSE");
return 0;
}
}