Sfoglia il codice sorgente

Initialisierung eines Programms zur Spielersteuerung durch ein TestLab

ateubert 7 anni fa
parent
commit
1fc1e8fcaa
2 ha cambiato i file con 22 aggiunte e 0 eliminazioni
  1. 14 0
      Player.py
  2. 8 0
      TestLab.txt

+ 14 - 0
Player.py

@@ -0,0 +1,14 @@
1
+import random as rd
2
+import time as t
3
+import sys
4
+import os
5
+
6
+Data = open("Testlab.txt","r")
7
+
8
+n = 0
9
+line = 0
10
+
11
+for line in Data:
12
+    li = line.rstrip().split("")
13
+    print li
14
+    t.sleep(1)

+ 8 - 0
TestLab.txt

@@ -0,0 +1,8 @@
1
+S 1 1 1 0 0 0 0
2
+0 0 0 1 0 0 0 0
3
+0 1 1 1 0 1 1 0
4
+0 1 0 0 1 1 1 1
5
+1 1 0 0 1 0 0 1
6
+1 0 0 0 1 0 0 1
7
+1 0 0 0 1 0 0 1
8
+1 1 1 1 1 0 0 Z