//used for player to move to a certain room in the cave //Game control will call this object public void Move(String direction) { Sound s1 = new Sound(); this.turns++; //call the map object to get the current room number //s1.footsteps(); if (this.goldMap > 0) { this.gold++; this.goldMap--; //s1.buttonPressed(); } Console.WriteLine(questions.giveHint()); //if wumpus is nearby, print to console wumpus is nearby and play sound map.movePlayer(direction); map.closeBy(direction); updateScore(); //return 0; return new number based on what direction }
private void HintForm_Load(object sender, EventArgs e) { HintLabel.Text = trivia.giveHint(); }