[ create a new paste ] login | about

Link: http://codepad.org/fUJT30RV    [ raw code | fork ]

C++, pasted on May 7:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
for (;;) {

            usleep(100*1000);
            
            std::cout<<thisclient->bl.get_time ();

			if (thisclient->bl.get_see_ball ()) {
				if (std::abs (thisclient->bl.get_ball_ang ()) > 5.0) {
					std::snprintf (buf, 20, "(turn %d)", (int) thisclient->bl.get_ball_ang ());
					thisclient->sndCmd (buf);
					std::cout << " - Szog: " << thisclient->bl.get_ball_ang();
				}
			}
			else {
				thisclient->sndCmd ("(turn 10)");
				std::cout<<" - HolALabda?";
				}
			std::cout << "\n";
         }


Create a new paste based on this one


Comments: