Skip to content

Latest commit

 

History

History
66 lines (56 loc) · 1.99 KB

dev-doc.md

File metadata and controls

66 lines (56 loc) · 1.99 KB

Dev Doc

  • use python -m pydoc -w tic_tac_toe to generate documentation if required

Versions

  • easy level - maximum score - just compare score and give answer - implementation done
  • smart level - winner if 3 in a row - game needs to be early over - Implementation done

Task List

  • Rename to Ultimate Tic tac toe
  • Add a 3x3 prototype
  • Document the prototype
  • Refer books, gain more pygame knowledge
  • Define rules for new extended version
  • Define data structure
  • Start coding
  • Implement User
  • Graphics prototype
  • small box win
  • winning Line graphics
  • Big win implementation
  • Big win line Big Win color
  • Tie Detection
  • difficulty - easy and smart
  • Handle Key Presses
    • Press Esc to quit the application
    • Press ctrl + N to restart the game
  • modify score card
    • Player 1 ( X )
    • Player 2 ( O )
    • Tie
    • Winner is Player 1 ( X )
    • Winner is Player 2 ( O )
    • Font change maybe
    • space out a little
  • Implement computer move
    • random
    • AI
  • Refactor 'O' to Omark & 'X' to Xmark at all places
  • Setup Proper color scheme
  • Make more screens
    • Welcome screen
    • Choose Single Player (against AI) or Two Player
    • single game vs tournament (keeping track of multiple games)
    • win streak
    • Exit bye bye screeen
  • Document code ( check out sphinx ) & clean up comments & Brush up code PEP8 style
  • Document complete game loop
  • Bundle up for release
  • Upload to pygame store

Bugs

  • In scoreboard, with each win, tie = 0 becomes tie = 0)) . IDK why, gotta inspect

Additional points

  • ALso a possible data structure,, but will need to redefine my entire logic of finding coordinates,
theBoard = {'top-L': 'O', 'top-M': 'O', 'top-R': 'O',
            'mid-L': 'X', 'mid-M': 'X', 'mid-R': ' ',
            'low-L': ' ', 'low-M': ' ', 'low-R': 'X'}