The purpose of lab 1 is to
- Introduce the basic concepts of programming:
- lists-of-lists (2D lists)
- concept of libraries, python package manager
- pygame libraries
Workshop content: tic-tac-toe
- load pygame
- initialize the screen
- draw an empty board
- how will we track the state of the screen?
- draw a circle in a given location
- draw a cross in a given location
- render the screen based on the content of the board
- react on a click => how will we determine which field was clicked on?
- determine who is the winner
Stretch goal / homework:
- keep track of the score across multiple games
- build an AI you can play against