Browse Source

Initialisierung eines Programms zur Spielersteuerung durch ein TestLab

ateubert 7 years ago
parent
commit
1fc1e8fcaa
2 changed files with 22 additions and 0 deletions
  1. 14 0
      Player.py
  2. 8 0
      TestLab.txt

+ 14 - 0
Player.py

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

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