Assignment (lab03)

3.7. Assignment (lab03)#

This ungraded assignment will guide you through the creation of a Tetris AI in 16 steps. In order to understand and solve the exercises, and more generally to gain the maximum benefit from this assignment, it is highly recommended that you revise the Chapter 1.

3.7.1. Contents#

  • Part 1: Basic AI

Activity

Topic

Quiz 1

State

Quiz 2

Landings

Quiz 3

Column height

Quiz 4

Total height

Quiz 5

Complete lines

Quiz 6

Holes

Quiz 7

Bumpiness

Quiz 8

Quality of a placement

Quiz 9

Tetris AI

  • Part 2: Advanced AI

Activity

Topic

Quiz 10

Landing height

Quiz 11

Erosion

Quiz 12

Row transitions

Quiz 13

Column transitions

Quiz 14

Cumulative wells

Quiz 15

Hole depth

Quiz 16

Lines with holes

3.7.2. Required packages#

For this assignment, you need to import (and install if needed) the following packages.

  • Numpy - The library for scientific computing in Python.

  • Joblib - The library for easy simple parallel computing in Python.

  • PyGame - The library for writing video games in Python.