Skip to content

Commit 83249ed

Browse files
requirements.txt
piece search depth 3
1 parent 9921edd commit 83249ed

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

AI_main.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from find_landings import all_landings
22
import numpy as np
33
from direct_keys import *
4-
from copy import deepcopy
54
import time
65
from figures import piece_weight, find_figure
76
from digit import get_field
@@ -226,8 +225,8 @@ def choose_action_depth2(self, field, piece_idx, next_piece, can_hold):
226225
return results[0]
227226

228227
def place_piece(self, piece, rotation, x_pos, height, rot_now=0, x_pos_now=3, depth=0):
229-
if depth == 2:
230-
print('depth 2 reached')
228+
if depth == 3:
229+
print('depth 3 reached')
231230
return
232231
rotate = (rotation - rot_now) % 4
233232
if rotate < 3:

main.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,8 @@
11
import time
2-
from copy import deepcopy
32
from digit import get_field
43
from figures import type_figure_ext
54
from AI_main import AI
65
import numpy as np
7-
import cProfile
86

97

108
PLAY_SAFE = False

requirements.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
numpy~=1.17.4
2+
matplotlib~=3.3.0
3+
mss~=6.0.0
4+
keyboard~=0.13.5

0 commit comments

Comments
 (0)