Skip to content

gkarat/tic-tac-toe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

tic-tac-toe

Alternative Tic-Tac-Toe game

Rules:

  • Two players, X and O, take turns marking the spaces in a HxW grid
  • First turn can be anywhere in a grid
  • All next turns have to mark only space near already marked spaces (by X or O)
  • The player who succeeds in placing two own marks between one or more empty spaces in a horizontal or vertical row wins the game

How to run:

~$python3 tic-tac-toe.py [height] [width] [h|c] [h|c]

  • width and height >= 3
  • two last arguments are for defining player1 and player2
  • h is for human and c is for computer
This game was a part of my homework, special thanks to David Dobrovolny and Radim Sasinka

About

Text-based alternative Tic-Tac-Toe game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages