Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Zhang committed Apr 27, 2012
1 parent 3ca36d7 commit 34e37db
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions threats.ml
Expand Up @@ -77,9 +77,9 @@ module TGenerator(B: BOARD):THREATS with type board = B.board

let rec gen_threat_tree (b: board) (t: threat) (tlist: threats) =
let Threat(ttype, _, _, _) = t in
if (B.isWin b) || (ttype = StraightFour) then
if (B.isWin b != None) || (ttype = StraightFour) then
Win(b, t, t::tlist)
else
else
let threatList = get_dependent_threats b t in
if threatList = [] then
Leaf(b, t)
Expand Down

0 comments on commit 34e37db

Please sign in to comment.