-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTreeR5.bpp
More file actions
31 lines (30 loc) · 724 Bytes
/
TreeR5.bpp
File metadata and controls
31 lines (30 loc) · 724 Bytes
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
rem Made for R5 Beta
rem logic constants
///,min = 3
///,max = 8
rem visual constants
///,starcharacter = "+"
///,leafcharacter = "*"
///,logcharacter = "#"
///,spacecharacter = " "
input "size ///min///-///max///";s ///.begin
rem check for overflow
if s<///min/// goto begin
if s>///max/// goto begin
rem build the tree itself
for c=1 to s
for e=0 to s-c
print ///spacecharacter///;
next e
for a=1 to (c-1)*2+1
rem i write the star on top and the leaves
if c=1 then print ///starcharacter///;
if c<>1 then print ///leafcharacter///;
next a
print ///spacecharacter///
next c
rem here i add the log
for c=1 to s
print ///spacecharacter///;
next c
print ///logcharacter///