Kess DuKe
-
Total Posts
:
56
- Joined: Aug 11, 2004
|
Who's the best programmer?
-
Dec 31, 2008 04:37
Program rajzolo_wasd; Uses crt; Var x,y:integer; gomb:char; Begin Textcolor(14); Clrscr; x:=40; y:=13; Gotoxy(x,y); Repeat gomb:=readkey; If(gomb='w')then begin y:=y-1; Gotoxy(x,y); Gotoxy(1,1); Write(x,',',y); Gotoxy(x,y); end; If(gomb='a')then begin x:=x-1; Gotoxy(x,y); Gotoxy(1,1); Write(x,',',y); Gotoxy(x,y); end; If(gomb='s')then begin y:=y+1; Gotoxy(x,y); Gotoxy(1,1); Write(x,',',y); Gotoxy(x,y); end; If(gomb='d')then begin x:=x+1; Gotoxy(x,y); Gotoxy(1,1); Write(x,',',y); Gotoxy(x,y); end; If(gomb='n')then write('*'); If(gomb='m')then write(' '); Until(gomb='x'); End. It is written in Free Pascal and you can draw with it.
<message edited by Kess DuKe on Dec 31, 2008 04:40>
|
|
immortaldanmx
-
Total Posts
:
2966
- Joined: Nov 13, 2003
- Location: Virginia, USA
|
Re:Who's the best programmer?
-
Dec 31, 2008 04:52
Thats terrible. Tony Stark could build that in a cave with scraps. Kidding. I havent programmed since I had Visual Basic class and played with Python because I was bored in Networking.
|
|
locopuyo
-
Total Posts
:
3138
- Joined: Jan 10, 2005
- Location: Minneapolis
|
Re:Who's the best programmer?
-
Dec 31, 2008 19:27
ew delphi
|
|