diff options
-rw-r--r-- | python/alphaBeta.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/alphaBeta.py b/python/alphaBeta.py index f9d735f..0a24ebc 100644 --- a/python/alphaBeta.py +++ b/python/alphaBeta.py @@ -45,7 +45,12 @@ class AlphaBeta(object): State = deepcopy(State) start = ABNode(State) possiblemoves=State.get_moves() + if len(possiblemoves) < 3: + for x in possiblemoves: + return x for x in possiblemoves: + if len(possiblemoves) < 3: + return x if (x[0],x[1],x[2]) not in start.children: start.Make(x[0],x[1],x[2]) # if Ply_num < 2: |