- Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDetective.cpp
More file actions
Latest commit
22 lines (20 loc) · 516 Bytes
/
Copy pathDetective.cpp
File metadata and controls
22 lines (20 loc) · 516 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include"Detective.h"
#include<iostream>
Detective::Detective(intID, std::string nm):Player(ID, nm, DETECTIVE) {
}
std::string Detective::SuspectWho() {
std::cout<<"Do you suspect someone?";
bool ch;
std::string choice;
std::string who = "";
std::cin>>choice;
if (choice == "YES" || choice == "Yes" || choice == "yes" || choice == "y" || choice == "Y")
ch = true;
else
ch = false;
std::cout<<"Who?\n";
if (ch) {
std::cin>>who;
}
return who;
}