From f779c415e4e2c7720aa0525397141c51d7b10fd5 Mon Sep 17 00:00:00 2001 From: Thibaut Horel Date: Sun, 19 Jun 2011 01:32:32 +0200 Subject: Update ltg.ml to work with latest change. Game engine is functional but lacking end of rounds conditions and init round slot checking. Add gitignore --- .gitignore | 1 + ltg.ml | 4 ++-- 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 .gitignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..166d81d --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +ltg diff --git a/ltg.ml b/ltg.ml index 8aed118..d3b7473 100644 --- a/ltg.ml +++ b/ltg.ml @@ -14,9 +14,9 @@ let opponent = match me with let read_move () = Scanf.scanf "%d\n" (fun d -> match d with | 1 -> Scanf.scanf "%s\n%d\n" (fun s d -> - Cards.left_apply opponent (card_of_string s) d) + Game.left_apply opponent (card_of_string s) d) | 2 -> Scanf.scanf "%d\n%s\n" (fun d s -> - Cards.right_apply opponent (card_of_string s) d) + Game.right_apply opponent (card_of_string s) d) | _ -> failwith "Wrong move number" ) -- cgit v1.2.3-70-g09d2