aboutsummaryrefslogtreecommitdiff
path: root/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Matrix.py
diff options
context:
space:
mode:
authorjakobst1n <jakob.stendahl@outlook.com>2018-12-04 16:19:02 +0000
committerjakobst1n <jakob.stendahl@outlook.com>2018-12-04 16:19:02 +0000
commitec3b7655b3b265cfe0086d7ad20ffa28cfa8629d (patch)
treea2e8eab6034a0beaa643c9bc2d30cc704c2ba9ea /src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Matrix.py
parent7799a9bf44f6afdacb7742768d3da0cce0f06186 (diff)
downloadLuxcena-Neo-ec3b7655b3b265cfe0086d7ad20ffa28cfa8629d.tar.gz
Luxcena-Neo-ec3b7655b3b265cfe0086d7ad20ffa28cfa8629d.zip
:sparkles: Matrix is now setting itself up correctly
Have bypassed a try-catch for now
Diffstat (limited to 'src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Matrix.py')
-rw-r--r--src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Matrix.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Matrix.py b/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Matrix.py
index 0986b45..4a93247 100644
--- a/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Matrix.py
+++ b/src/compileAndRun/pythonSupportFiles/LuxcenaNeo/Matrix.py
@@ -37,6 +37,14 @@ class Matrix:
def get(self, x, y):
""" Return the value of a place in the matrix given x and y coordinates """
return self.matrix[y][x]
+
+ def dump(self):
+ for y in self.matrix:
+ thisYLine = ""
+ for x in y:
+ thisYLine += str(x) + ( ' ' * (5 - len(str(x))) )
+ print(thisYLine)
+
if __name__ == "__main__":
testMatrix = Matrix(