I feel like maybe I missing something pretty important. (Like I’m learning how to do things but not why I’m doing them?) I’m on 11/19 (Danger, Will Robinson!!) and I’m going through my code and I don’t really understand this part (line 14-18 at this point):
def random_row(board): return randint(0, len(board) - 1) def random_col(board): return randint(0, len(board) - 1)
I don’t know why I put the index on the random_col and I don’t understand why I subtracted 1 from both of them. Keep in mind I’m pretty new to this whole programming thing so I probably won’t understand abstract concepts or anything.
Anyway, thanks for any help you can provide.