eburakova / tic-tac-toe

Friday challenge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

tic-tac-toe

A challenge that concludes our very first week of the Data science bootcamp @ neue fische

Developed by eburakova and ddotplus

Builds

tictactoe_2v1.py

Written by eburakova.

Features

  • Supports sqare fields size up to 31 x 31 (and up to ∞ but the visuals break)
  • Uses custom emojis and symbols

Demo

tictactoe.demo.mov
image

tictactoe1v1.py

Written by @ddotplus

Features

  • Supports sqare fields size up to 31 x 31 (and up to ∞ but the visuals break)
  • Has options to input a saved game state, to abort the game and list out free cells

Demo

┌---┬---┬---┐
│ 1 │ 2 │ 3 │
├---┼---┼---┤
│ 4 │ X │ 6 │
├---┼---┼---┤
│ 7 │ 8 │ O │
└---┴---┴---┘
User-1 (X):
  %% `a` - available positions
  %% `d` - draw game status
  %% `q` - quit
  > please input position [1-9]: a
  available positions: [1, 2, 3, 4, 6, 7, 8]
┌---┬---┬---┬---┬---┬---┐
│ O │ O │ O │ O │ O │ O │
├---┼---┼---┼---┼---┼---┤
│ 7 │ 8 │ 9 │ X │ 11│ 12│
├---┼---┼---┼---┼---┼---┤
│ 13│ 14│ X │ 16│ O │ X │
├---┼---┼---┼---┼---┼---┤
│ O │ X │ X │ O │ X │ O │
├---┼---┼---┼---┼---┼---┤
│ X │ X │ O │ X │ 29│ 30│
├---┼---┼---┼---┼---┼---┤
│ O │ X │ X │ X │ O │ X │
└---┴---┴---┴---┴---┴---┘
User-2 (O) won the game, congratulations!

Other files

pseudocode.md

Plan of the project

tictactoe.ipynb

Development and tests

About

Friday challenge

License:GNU General Public License v3.0


Languages

Language:Jupyter Notebook 51.0%Language:Python 49.0%