CSC108H5 Lecture Notes - Lecture 1: Docstring, Master Sergeant, Precondition

164 views9 pages
23 Mar 2015
School
Course
897wjface and 39475 others unlocked
CSC108H5 Full Course Notes
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:

Get access

Grade+20% off
$8 USD/m$10 USD/m
Billed $96 USD annually
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
40 Verified Answers
Class+
$8 USD/m
Billed $96 USD annually
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
30 Verified Answers

Related Documents