Skip to content

Commit c6e6ffe

Browse files
committed
lets play_method allows manual testing
1 parent 530fd6a commit c6e6ffe

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

maze_fun.ml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ let make_naive_move = (fun s -> (check_if_sitting_on_letter s); if (there_is_a_l
5151
let sort_char_list_alphabetically = ()
5252
let concatenate_list = ()
5353

54+
let rec lets_play n = match n with
55+
| 0 -> print_string "End of Game"
56+
| _ -> print_char (make_naive_move (read_line ())); print_newline(); (lets_play (n-1))
57+
58+
59+

0 commit comments

Comments
 (0)