aboutsummaryrefslogtreecommitdiffstats
path: root/ltg.ml
diff options
context:
space:
mode:
authorGuillaume Horel <guillaume.horel@gmail.com>2011-06-19 10:06:36 -0400
committerGuillaume Horel <guillaume.horel@gmail.com>2011-06-19 10:06:36 -0400
commit25b56ebd2bee7ea8f2a6fecb11335d9ecb34fe1b (patch)
tree57cced5da32216390d31b8d6be406279277e5673 /ltg.ml
parent2acffa283e52a449a72539377851ddc8c43d63e8 (diff)
parent43f6aa6e9b6dfe4faebbd1bfcf2098fb8f32a1da (diff)
downloadicfp2011-25b56ebd2bee7ea8f2a6fecb11335d9ecb34fe1b.tar.gz
Merge branch 'master' of github.com:Zaran/icfp2011
Diffstat (limited to 'ltg.ml')
-rw-r--r--ltg.ml11
1 files changed, 8 insertions, 3 deletions
diff --git a/ltg.ml b/ltg.ml
index 1da6295..1b7c329 100644
--- a/ltg.ml
+++ b/ltg.ml
@@ -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