-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgotia.1.0.c
135 lines (102 loc) · 2.06 KB
/
gotia.1.0.c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
#include<stdio.h>
#include<conio.h>
#include<taimr.h>
main()
{
int dup=1,i,wall,all,j;
//start of head of the gotya
for(i=1;i<10;i++)
{
int gap=10-i;
while(gap>0)
{
printf(" ");
gap--;
}
for(j=0;j<dup;j++){
printf("%c",469);
wait50(1);
}
printf("\n");
dup+=2;
}
//end of the head of the gotya
//start of the body of the gotya
for(wall=1;wall<8;wall++)
{
//for druing the huall sheap
for(all=0;all<19;all++){
//star of the window shap (soem of the door)
//the window.t.l >
if(all==3&&wall==3||all==10&&wall==3)
printf("%c",218);
//the window.t.c
else if(all==5&&wall==3)
printf("%c",194);
//the window.t.r
else if(all==7&&wall==3||all==16&&wall==3)
printf("%c",191);
//the window.c.l
else if(all==3&&wall==4)
printf("%c",195);
//the window.c.c
else if(all==5&&wall==4)
printf("%c",197);
//the window.c.r
else if(all==7&&wall==4)
printf("%c",180);
//the window.b.l
else if(all==3&&wall==5||all==10&&wall==7)
printf("%c",192);
//the window.b.c
else if(all==5&&wall==5)
printf("%c",193);
//the window.b.r
else if(all==7&&wall==5||all==16&&wall==7)
printf("%c",217);
else if((all==4||all==6)&&(wall==3||wall==4||wall==5))
printf("%c",196);
//end of the window shap (soome of the door)
//star of the lest of the door shap
//door.t.c,b,c
else if(all>10&&all<17&&wall==3||all>10&&all<16&&wall==7)
printf("%c",196);
//door.c.r,c,l
else if((wall>3&&wall<8)&&(all==10||all==16))
printf("%c",179);
//the end of the rest of the door shap
//start droing the borders
else if(all==0||all==18)
printf("%c",177);
else if(wall==7||wall==1)
printf("%c",496);
//end droing the walls
else if(wall==5&&all==12)
printf("%c",148);
else
printf(" ");
wait50(1);
}
printf("\n");
}
//end of the body of the gotya
getch();
return 0;
}
/*
176=window shap
177=wall shap
496=roof shap
148=doorhand shap
218=window.t.l (for door too)************
194=window.t.c
191=window.t.r (for door too)***********
195=window.c.l
197=window.c.c
180=window.c.r
192=wincow.b.l (for door too) **********
193=wincow.b.c
217=wincow.b.r (for door too) **********
196=door.t.c,b.c
179=door.c.r,c.l
*/