diff options
| author | Thibaut Horel <thibaut.horel@gmail.com> | 2011-06-19 13:45:28 +0200 |
|---|---|---|
| committer | Thibaut Horel <thibaut.horel@gmail.com> | 2011-06-19 13:45:28 +0200 |
| commit | 43f6aa6e9b6dfe4faebbd1bfcf2098fb8f32a1da (patch) | |
| tree | 7c902cd7dc0263f65980a6b5b11ce8d8a5890623 /ltg.ml | |
| parent | f4e6664361f2eaf10f2bd3c81916acc57c547037 (diff) | |
| download | icfp2011-43f6aa6e9b6dfe4faebbd1bfcf2098fb8f32a1da.tar.gz | |
Add exception filtering in left and right apply
Diffstat (limited to 'ltg.ml')
| -rw-r--r-- | ltg.ml | 11 |
1 files changed, 8 insertions, 3 deletions
@@ -20,7 +20,14 @@ let read_move () = Scanf.scanf "%d\n" (fun d -> match d with | _ -> failwith "Wrong move number" ) -let play_move () = () +(* important print newline to flush output *) +let play_move () = + Printf.printf "1"; + print_newline (); + Printf.printf "I"; + print_newline(); + Printf.printf "1"; + print_newline () let automatic player = let aux i slot = @@ -44,8 +51,6 @@ let do_round = let _ = let round = ref 1 in while !round <= 100000 do - Printf.printf "Round %d\n========" !round; - print_newline (); do_round (); incr round done
\ No newline at end of file |
