CSC108H5 Lecture Notes - Lecture 1: Docstring, Master Sergeant, Precondition
897wjface and 39475 others unlocked
12
CSC108H5 Full Course Notes
Verified Note
12 documents
Document Summary
A constant is a variable whose value does not. We can use these constants anywhere in this module. # here is a helper function that we have written and used elsewhere in the. You may make use of this function in the function(s) # that you write. def in_bounds(row, col, board_size): Return true if row and col are between 0 (inclusive) and board_size (non-inclusive). False return 0 <= row < board_size and 0 <= col < board_size. # add any helper functions that you write below. # for make_move(), we have given you the required function header and docstring, # and have supplied suggestions for reading moves and printing an error message. Return a list containing a valid row and column for view_board. # uncomment and use this statement as many times as needed for input: # uncomment and use this statement as many times as needed for output: