Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
48 changes: 48 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@

# Created by https://www.toptal.com/developers/gitignore/api/jupyternotebooks,macos
# Edit at https://www.toptal.com/developers/gitignore?templates=jupyternotebooks,macos

### JupyterNotebooks ###
# gitignore template for Jupyter Notebooks
# website: http://jupyter.org/

.ipynb_checkpoints
*/.ipynb_checkpoints/*

# IPython
profile_default/
ipython_config.py

# Remove previous ipynb_checkpoints
# git rm -r .ipynb_checkpoints/

### macOS ###
# General
.DS_Store
.AppleDouble
.LSOverride

# Icon must end with two \r
Icon


# Thumbnails
._*

# Files that might appear in the root of a volume
.DocumentRevisions-V100
.fseventsd
.Spotlight-V100
.TemporaryItems
.Trashes
.VolumeIcon.icns
.com.apple.timemachine.donotpresent

# Directories potentially created on remote AFP share
.AppleDB
.AppleDesktop
Network Trash Folder
Temporary Items
.apdisk

# End of https://www.toptal.com/developers/gitignore/api/jupyternotebooks,macos
Binary file added your-project/DAFT Presentation Tic_Tac_Toe.key
Binary file not shown.
47 changes: 35 additions & 12 deletions your-project/README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<img src="https://bit.ly/2VnXWr2" alt="Ironhack Logo" width="100"/>

# Title of Your Project
*[Your Name]*
# Tic Tac Toe
*Ignacio Rus Prados*

*[Your Cohort, Campus & Date]*
*DAFT-MAR21, Remote, 25/03/2021*

## Content
- [Project Description](#project-description)
Expand All @@ -13,22 +13,45 @@
- [Links](#links)

## Project Description
Write a short description of your project. Write 1-2 sentences about the game you chose to build and why.

I decided to code my own version of the well-known Tic Tac Toe game. It provides a visual representation of the board and it is interactive, challenging the player to beat the computer (SPOILER ALERT: it's impossible). I chose this game because I thought it would be challenging to find a way to code the game rules, and even harder to code the AI without specifying every possible move.

## Rules
Briefly describe the rules of the game.

Tic Tac Toe challenges two players to beat each other by placing, one at a time and switching turns, noughts and crosses in a 3x3 board. The player who succeeds in placing three of their marks in a diagonal, horizontal, or vertical row is the winner.

## Workflow
Outline the workflow you used in your project. What are the steps you went through?

First I created an extensive txt file with the pseudocode that helped me to organize the project and separate it in different sections. Then I proceeded to code the different parts of the code in (more or less) the following order:

-Visual interface and basic interaction: asking the player if they want to be first/second or if they want to play again)

-Interaction with the player: giving the ability to place markers

-Rules of the game: checking when a player has won (or if it's a tie)

-Computer AI: strategy to always find the best move.

I also took care of readibility, error handling and such throughout the whole process.

## Organization
How did you organize your work? Did you use any tools like a kanban board?

What does your repository look like? Explain your folder and file structure.
I used the Trello template to organize my work and keep track of all remaining tasks.

My repository consists of:

- Folder: Project-Week-1-Build-Your-Own-Game
- Kick-Off.md (Instructions for the project)
- .gitignore
- Folder: your-project
- DAFT Presentation Tic_Tac_Toe.key (presentation of the project)
- README.md ("Read me" file including a summary of my project. You are literally looking at it)
- Folder: TicTacToe
- pseudocode.txt (text file including the pseudocode)
- TicTacToe.ipynb (a python3-jupyter-notebook file including all the code that makes up the game)
- tictactoe.py (an python3 file that can run the game by typing "python3 tictactoe.py" in Terminal)

## Links
Include links to your repository, slides and kanban board. Feel free to include any other links associated with your project.

[Repository](https://github.com/)
[Slides](https://slides.com/)
[Trello](https://trello.com/en)
[Repository](https://github.com/IgnacioRus/Project-Week-1-Build-Your-Own-Game)
[Trello](https://trello.com/b/ymfsxblR/tic-tac-toe-plan)
Loading