URL
https://opencores.org/ocsvn/connect-6/connect-6/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 10 |
Rev 15 |
Line 29... |
Line 29... |
char select_AI_colour (int argc, char **argv){
|
char select_AI_colour (int argc, char **argv){
|
char ai_colour='L';
|
char ai_colour='L';
|
int i;
|
int i;
|
// cout<<"Please enter referee AI's colour. L or D"<<endl;
|
// cout<<"Please enter referee AI's colour. L or D"<<endl;
|
// cin >> ai_colour;
|
// cin >> ai_colour;
|
for(i=0;i<argc; i++){
|
//////////for(i=0;i<argc; i++){
|
if((strncmp(argv[i],"-player",7)==0) && (i< (argc+1)) ){
|
////////// if((strncmp(argv[i],"-player",7)==0) && (i< (argc+1)) ){
|
ai_colour= *argv[i+1];
|
////////// ai_colour= *argv[i+1];
|
}
|
////////// }
|
}
|
//////////}
|
|
|
// while (ai_colour != 'L' && ai_colour != 'D'){
|
// while (ai_colour != 'L' && ai_colour != 'D'){
|
// cout<<"Invalid colour. Single character L or D"<<endl;
|
// cout<<"Invalid colour. Single character L or D"<<endl;
|
// cin >> ai_colour;
|
// cin >> ai_colour;
|
// }
|
// }
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.