Feb-02-2019, 04:58 AM
(Feb-02-2019, 04:30 AM)ichabod801 Wrote: Note that your code checks that all the items are 'X'. To check that they are all equal (no matter what they are), check against matrix[0][0] instead (that's the first item in the first row).
I don't know is it important or not but just observing that in case of empty matrix (list of empty lists) checking against matrix[0][0] will give IndexError.
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.