Taking game parameters

This commit is contained in:
Matúš Púll 2024-11-02 15:56:03 +01:00
parent fdd7faed9d
commit 63f748b9da

27
main.cpp Normal file
View 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;
}