From 9b10fae0bd870970bc08b61f677742abd36519f6 Mon Sep 17 00:00:00 2001
From: Josua Oppermann <josua.oppermann@gmail.com>
Date: Thu, 9 Jan 2025 16:58:10 +0100
Subject: [PATCH] Tile Comments

---
 Tile.java | 24 +++++++++++++++++-------
 1 file changed, 17 insertions(+), 7 deletions(-)

diff --git a/Tile.java b/Tile.java
index d6323a4..97b37b4 100644
--- a/Tile.java
+++ b/Tile.java
@@ -1,13 +1,20 @@
-
+/**
+ * This class is an Object that is used to represent a single Tile on the playing Board.
+ */
 public class Tile {
 
-    /**These Values are being set when initialized */
+    /**
+     * These Values are being set when initialized
+     */
     int owner = -1;
 
-    /**Initializer for Tile Objects */
+    /**
+     * Initializer for Tile Objects 
+     */
     public Tile(){}
 
-    /**Lets you set a new owner;
+    /**
+     * Lets you set a new owner;
      * -1 = no one; 0 = Player 1; 1 = Player 2
      * @param owner
      */
@@ -15,7 +22,8 @@ public class Tile {
         owner = player;
     }
 
-    /**Returns the owner
+    /**
+     * Returns the owner
      * -1 = no one; 0 = Player 1; 1 = Player 2
      * @return owner
      */
@@ -23,14 +31,16 @@ public class Tile {
         return owner;
     }
 
-    /**Returns if the Tile-owner is equal to the given Player
+    /**
+     * Returns if the Tile-owner is equal to the given Player
      * @param owner
      */
     public boolean isOwner(int player){
         return owner == player;
     }
 
-    /**Whether this Tile is owned by a Player
+    /**
+     * Whether this Tile is owned by a Player
      */
     public boolean existOwner(){
         return owner != -1;
-- 
GitLab