From 0079221776106e3ca91076938e80d37e38eacc29 Mon Sep 17 00:00:00 2001
From: Hong-Phuc Bui <hong-phuc.bui@htwsaar.de>
Date: Fri, 17 Oct 2025 07:01:14 +0200
Subject: [PATCH] 1. Vorlesung
---
textbased-programms/chess.js | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/textbased-programms/chess.js b/textbased-programms/chess.js
index c23e683..6a107d0 100644
--- a/textbased-programms/chess.js
+++ b/textbased-programms/chess.js
@@ -11,7 +11,7 @@
import {terminal} from "./dfhi.js";
-window.main = function(...argv) {
+window.main = (...argv) => {
let n = Number.parseInt(argv[0]);
terminal.clear();
printTopBottomLine(n);
@@ -33,8 +33,7 @@
};
-function printTopBottomLine(n, symbol='_')
-{
+const printTopBottomLine = (n, symbol='_') => {
terminal.print('.');
for(let i = 0; i < n; ++i) {
terminal.print(symbol);
--
Gitblit v1.10.0