Computer Science Canada

Name Game Program

Author:  Platinum_Playa [ Sat Apr 30, 2005 12:33 pm ]
Post subject:  Name Game Program

My girst time posting on compsci.


%Cmore
%Apr 29th,2005
%This program will output any name in the same pattern

color(9)
drawfill(0,0,12,12)
var name : string
var z := 0

%Program Title
locate(1,37)
colorback(14)
put"ThE NaMe GaMe"..

%Program Intro
locate(3,3)
put"This program will output your name in a specially designed program"

%User input
locate(5,4)
put "Please enter your name "..
get name
cls

%Processing
for x : 1 .. length (name)
z := 0
for y : x .. length (name)
locate (12 + (length (name) div 2) - x, 40 + length (name) div 2 - z)
put name (y)..
z := z + 1
end for
end for

%End Of Program

Author:  Delos [ Sat Apr 30, 2005 3:48 pm ]
Post subject: 

1)
Hello.

2)
Please use [code] tags in the future.

3)
It's nice to show that you know how to code using the basics. Not to discourage, but please ask yourself before you post next time "Is this post actually going to be meaningful or useful to anyone on this site?"
Hopefully when V3 comes around there will be a specific Newbie forum to post this kind of stuff...

Author:  Dylan-182 [ Thu May 12, 2005 1:07 am ]
Post subject: 

nice work i liked it lol it could have been better but w/e its still cool Very Happy

Author:  Lazarus [ Wed May 18, 2005 1:32 pm ]
Post subject: 

He hasn't made another post since you scared him off Delos.

lol, wonder if he'll be back.

Author:  *SmilePlease* [ Sat May 21, 2005 10:33 pm ]
Post subject: 

Dylan-182 wrote:
nice work i liked it lol it could have been better but w/e its still cool Very Happy

Author:  Dylan-182 [ Sun May 22, 2005 5:09 pm ]
Post subject: 

Confused SmilePlease, why did u quote me and then not say anything? Confused

lol


: