#include<iostream>
#include<windows.h>
using namespace std;
int a=7;
int b=6;
void gotoxy(int x, int y)
{
COORD c;
c.X = x - 1;
c.Y = y - 1;
SetConsoleCursorPosition
(GetStdHandle(STD_OUTPUT_HANDLE), c);
}
void boisko()
{
for(int i=0;i<16;i++)
{
gotoxy(6,1);
cout<<"__________"<<endl;
gotoxy(6,2);
cout<<"||"<<endl;
gotoxy(6,3);
cout<<"||"<<endl;
gotoxy(14,2);
cout<<"||"<<endl;
gotoxy(14,3);
cout<<"||"<<endl;
gotoxy(i+2,3);
cout<<"____"<<endl;
gotoxy(6,6);
cout<<"#"<<endl;
gotoxy(17,10);
cout<<"#"<<endl;
gotoxy(3,16);
cout<<"#"<<endl;
gotoxy(1,i+4);
cout<<"||"<<endl;
gotoxy(20,i+4);
cout<<"||"<<endl;
gotoxy(14,20);
cout<<"||"<<endl;
gotoxy(14,21);
cout<<"||"<<endl;
gotoxy(6,20);
cout<<"||"<<endl;
gotoxy(6,21);
cout<<"||"<<endl;
gotoxy(8,21);
cout<<"______"<<endl;
gotoxy(i+2,19);
cout<<"___"<<endl;
gotoxy(a,b);
cout<<"@"<<endl;
}
}
int main()
{
while(true){
system("cls");
boisko();
for(a=7;a<14;)
{
while(a<16&&b<10)
{
gotoxy(a,b);
cout<<"@"<<endl;
a++;
a++;
b++;
Sleep(100);
system("cls");
boisko();
}
}
for(a=16;a>4;)
while(a>4&&b<16)
{
gotoxy(a,b);
cout<<"@"<<endl;
a--;
a--;
b++;
Sleep(100);
system("cls");
boisko();
}
for(a=4;a<16;)
while(a<12&&b<21)
{
gotoxy(a,b);
cout<<"@"<<endl;
a++;
a++;
b++;
Sleep(100);
system("cls");
boisko();
}
}
return 0;
}
{"html5":"htmlmixed","css":"css","javascript":"javascript","php":"php","python":"python","ruby":"ruby","lua":"text\/x-lua","bash":"text\/x-sh","go":"go","c":"text\/x-csrc","cpp":"text\/x-c++src","diff":"diff","latex":"stex","sql":"sql","xml":"xml","apl":"apl","asterisk":"asterisk","c_loadrunner":"text\/x-csrc","c_mac":"text\/x-csrc","coffeescript":"text\/x-coffeescript","csharp":"text\/x-csharp","d":"d","ecmascript":"javascript","erlang":"erlang","groovy":"text\/x-groovy","haskell":"text\/x-haskell","haxe":"text\/x-haxe","html4strict":"htmlmixed","java":"text\/x-java","java5":"text\/x-java","jquery":"javascript","mirc":"mirc","mysql":"sql","ocaml":"text\/x-ocaml","pascal":"text\/x-pascal","perl":"perl","perl6":"perl","plsql":"sql","properties":"text\/x-properties","q":"text\/x-q","scala":"scala","scheme":"text\/x-scheme","tcl":"text\/x-tcl","vb":"text\/x-vb","verilog":"text\/x-verilog","yaml":"text\/x-yaml","z80":"text\/x-z80"}