diff options
| author | Guillaume Horel <guillaume.horel@gmail.com> | 2011-06-19 10:06:36 -0400 |
|---|---|---|
| committer | Guillaume Horel <guillaume.horel@gmail.com> | 2011-06-19 10:06:36 -0400 |
| commit | 25b56ebd2bee7ea8f2a6fecb11335d9ecb34fe1b (patch) | |
| tree | 57cced5da32216390d31b8d6be406279277e5673 /ltg.ml | |
| parent | 2acffa283e52a449a72539377851ddc8c43d63e8 (diff) | |
| parent | 43f6aa6e9b6dfe4faebbd1bfcf2098fb8f32a1da (diff) | |
| download | icfp2011-25b56ebd2bee7ea8f2a6fecb11335d9ecb34fe1b.tar.gz | |
Merge branch 'master' of github.com:Zaran/icfp2011
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 |
