board - v (* move_cursor c x y returns a new cursor...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
type bd t type cursor t (* load_board f loads the board at filename f and returns the board *) val load_board: string -> bd v (* width bd returns the width of board bd *) val width: bd -> int v (* get b x y returns the character on board b at (x, y) *) val get: bd -> int -> int -> char v (* cursor b x y returns a new cursor for b at (x, y) *) val cursor: bd -> int -> int -> cursor v (* coordinates_of_cursor c returns the location (x, y) of a cursor *) val coordinates_of_cursor: cursor -> int * int
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: v (* move_cursor c x y returns a new cursor identical to c except that * c points to (x, y), and (x,y) is marked as visited *) val move_cursor: cursor -> int -> int -> cursor v (* get_word c returns the string that c has traversed. *) val get_word: cursor -> string v (* unvisited_neighbors returns all unvisited points next to the cursor's * current location, as a list of coordinates *) val unvisited_neighbors: cursor -> (int * int) list...
View Full Document

This note was uploaded on 10/25/2009 for the course CS 3110 at Cornell University (Engineering School).

Ask a homework question - tutors are online