Skip to content

Commit

Permalink
Better random :)
Browse files Browse the repository at this point in the history
  • Loading branch information
titouanfreville committed Jun 17, 2017
1 parent 0342cdd commit 01180fd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file modified build/linux/square-game
Binary file not shown.
2 changes: 1 addition & 1 deletion src/ia/base.ml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ let rec randomMoveRec l n il =
| (_::q, n) -> randomMoveRec q (n-1) il

let randomMove l =
let o = Random.int(List.length(l)) in
let o = Random.int((List.length(l)+30)*Random.int(10)+Random.int(50)) in
randomMoveRec l o l

let rec isClosableRec lbool c side =
Expand Down

0 comments on commit 01180fd

Please sign in to comment.