We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cace6a0 commit f1b072bCopy full SHA for f1b072b
src/language/chess.ts
@@ -0,0 +1 @@
1
+export function chess(size = 8) {}
src/language/triangle.ts
@@ -0,0 +1,13 @@
+export function triangle(length = 3) {
2
+ return Array.from({ length }, (_, time) => "#".repeat(time + 1)).join("\n");
3
+}
4
+
5
+export function triangleFor(rows = 3) {
6
+ let result = "";
7
8
+ for (let i = 1; i <= rows; i++) {
9
+ result += "#".repeat(i) + "\n";
10
+ }
11
12
+ return result;
13
0 commit comments