Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- istream *inputs;
- ifstream inputs2;
- inputs = &inputs2;
- inputs2.open("input2.txt"); //ifstream inputs = cin;
- if (!inputs2.good())
- {
- isLocal = false;
- cerr << cmdlineStringArgs[0] << " Usando cin como test en CG"<<endl;
- inputs = &cin;
- }
- gamestate.ReadConfig(*inputs);
- while(1){
- gamestate.ReadTurn(*inputs);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement