Git Product home page Git Product logo

tic-tac-toe-project's Introduction

Tic Tac Toe

The rationale for this project was to create a fun Tic Tac Toe game, which runs in the Code Institute mock terminal on Heroku.

Users will go up against the computer in a classical game of Tic-Tac-Toe.

The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.

If played optimally by both players, the game always ends in a tie, making tic-tac-toe a futile game that's been played and enjoyed for centuries.

Web Screenshit

Here is the live version of my project - Tic Tac Toe

How to play

You probably already know how to play Tic-Tac-Toe. It's a really simple game, right? That's what most people think. But if you really wrap your brain around it, you'll discover that Tic-Tac-Toe isn't quite as simple as you think!

Tic-Tac -Toe (along with a lot of other games) involves looking ahead and trying to figure out what the person playing against you might do next.

  1. The game is played on a grid that's 3 squares by 3 squares.

  2. You are X, your friend (or the computer in this case) is O. Players take turns putting their marks in empty squares.

  3. The first player to get 3 of her marks in a row (up, down, across, or diagonally) is the winner.

  4. When all 9 squares are full, the game is over. If no player has 3 marks in a row, the game ends in a tie.

Features

Existing Features

Play against the computer

  • Random move generator

Accepts user input

Input validation and error-checking

  • You must enter a number between 1 - 9.
  • You must place your mark at a board position that has not already been choosen.

Web Screenshot

Web Screenshot

Web Screenshot


Features Left to Implement

  • A more interactive interface
  • Multiplayer option
  • Leaderboard

Testing

Validator Testing

PEP8 Test Screenshot No errors were returned when passing through the Python PEP8 validator.


Manual Testing

I have manually tested this project throughout production and confirmed the following:

  • Logic of game works.
  • Necessary feedback is presented in a clear and engaging way.
  • The get_user_move() input only accepts valid data, which is a number between 1 - 9.
  • The play_again() input only accepts valid data, which is "yes" or "no"
  • ...

Bugs

I found ...

Unfixed Bugs

N/A

Deployment

Technologies used

Python - As a dynamic, high level, free open source and interpreted programming language

Code Institute mock terminal on Heroku - Files containing HTML, CSS and JavaScript were all provided by Code Institute for this project

Heroku - As a container-based cloud Platform, to deploy live version of my project.

GitHub - As a software hosting platform to keep project in a remote location.

Git - As a version-control system tracking.

Gitpod - As a development hosting platform.

Figma - As a browser-based UI and UX design application to create the flowchart scetch.

Credits

Text content

Code

tic-tac-toe-project's People

Contributors

nelliesohl avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.