ThePythonGameBook

learn Python. Create Games

User Tools

Site Tools


en:python:tictactoe:start

TicTacToe

This is a python3 tutorial about a very simple game: TicTacToe.

Prerequisites

Goals

topics covered in this tutorial

  • writing a 2 player tic-tac-toe game in text mode
  • work with printing in text mode, conditionals, variables, loops
  • 2-dimensional arrays (nested list), flattening a list
  • work with userinput, testing userinput, writing functions
  • pep8 style guide

topics not (yet) in this tutorial

  • doctests
  • computer player (AI, random)
  • network mode
  • gui

list of sub-pages in this chapter

/var/www/horst/thepythongamebook.com/data/pages/en/python/tictactoe/start.txt · Last modified: 2020/05/15 22:59 by Horst JENS