Topic Guide

Classes, inheritance

Intro part I


itertools.cycle() – cycle over a list of items

Tictactoe (see Tictactoe.run())


all(), any() – all items of a list evalute to True, any evalute to True

TictactoeBoard (see TictactoeBoard)


bool() – convert value to a boolean (True/False)

BlockyBlocks (see Tile._increment())


Sorting with a sort key function

BlocksBoard (see ai_move())


zip() – combine multiple sequences item-wise

SudokuBoard (see __init__())


enumerate() – return sequential numbers along with items of the sequence

Word (see hide())


exception catching – handle error conditions

Words BasicInterface (see reveal_letter())