Skip to content

carolinajimenez26/Tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic-tac-toe

Tic-tac-toe game

Requirements

  • 3 x 3 grid
  • User and computer play turn by turn
  • The board and the moves are displayed after each turn
  • Once a game is won, the winner is announced and a new game can be started

Configuration

  1. Create virtual enviroment
virtualenv venv
  1. Activate virtual enviroment

Generally:

source venv/bin/activate

When using fish:

. venv/bin/activate.fish
  1. Install all dependencies

When finish, deactivate venv:

Generally:

source deactivate

When using fish:

deactivate

Run game

python2 game/main.py

And enjoy!

Note: I'm using python2 since there is a problem with my Mac OS, see: https://github.com/pygame/pygame/issues/555

Tests

You can find some tests in /tests.

To run:

python2 -m pytest

Releases

No releases published

Packages

No packages published

Languages