-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtester.py
59 lines (47 loc) · 1.01 KB
/
tester.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
from numpy.linalg import LinAlgError
import numpy as np
from blockClass import OptimalBlock, fromBlock
from boardClass import Board
import time
# import this
from betterSearch import *
# from textToBoard import textToBoard
ml1 = [
['c', 2]
]
ml2 = [
['c', 3],
['c', -1],
]
mBlocksSetup = {
'o': OptimalBlock(3, 1, 3, 0, 'o'),
'p': OptimalBlock(3, 1, 0, 3, 'p'),
'x': OptimalBlock(2, 0, 0, 2, 'x'),
'q': OptimalBlock(3, 0, 1, 3, 'q')
}
# a = 1
# b = 0
# c = [a, b]
coefficients = np.array([
[1,1,0,0,0],
[1,0,1,0,0],
[1,0,0,1,0],
[1,0,0,0,1],
[0,1,1,0,0],
[0,1,0,1,0],
[0,1,0,0,1],
[0,0,1,1,0],
[0,0,1,0,1],
[0,0,0,1,1]
])
startTime = time.time()
# print(moves(mBlocksSetup, [6, 6]))
# print(block.pos[1-block.vertical])
# board = textToBoard('boards/1.txt', 'x', 0, 0)
# print(board.moves())
arr = [1,2,3]
for i in range(10):
for cycle in range(pow(10, 6)):
a = np.sum(np.array(arr))
print(time.time() - startTime)
startTime = time.time()