Skip to content

Commit 83d50ff

Browse files
authored
Add Baklava in Gosu (#4174)
1 parent 31f6ee8 commit 83d50ff

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

archive/g/gosu/baklava.gsp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
for ( n in -10..10) {
2+
var numSpaces = Math.abs(n)
3+
var numStars = 21 - 2 * numSpaces
4+
print(" ".repeat(numSpaces) + "*".repeat(numStars))
5+
}

0 commit comments

Comments
 (0)