Taking game parameters
This commit is contained in:
parent
fdd7faed9d
commit
63f748b9da
1 changed files with 27 additions and 0 deletions
27
main.cpp
Normal file
27
main.cpp
Normal file
|
@ -0,0 +1,27 @@
|
|||
#include <iostream>
|
||||
#include <string>
|
||||
|
||||
using std::cout;
|
||||
using std::cin;
|
||||
using std::string;
|
||||
|
||||
int main(void) {
|
||||
|
||||
// Taking problem parameters
|
||||
cout << "Length of sequence : ";
|
||||
int N; cin >> N;
|
||||
|
||||
cout << "Number of colors : ";
|
||||
int M; cin >> M;
|
||||
|
||||
cout << "Who plays [human/bot] : ";
|
||||
string player; cin >> player;
|
||||
|
||||
string opponent = "random";
|
||||
if(player == "bot") {
|
||||
cout << "Who generates the sequence [random/human]: ";
|
||||
cin >> opponent;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Reference in a new issue