Skip to content

grace-mugoiri/javascript-tictactoe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Tic Tac Toe - Javascript

This is a project for building a Tic tac toe game that plays humans vs computer.

Tic tac toe game also uses Minimax algorithm for computer moves, to learn more about Minimax algorithm, follow this => Wikipedia

This is part of the Javascript Constructor Project in the Odin Project's Javascript Curriculum.
Find it at here.

Technologies

  • Javascript: ECMAScript 2018 (es6)
  • HTML 5
  • CSS 3

How to play the game

  • Board will be an empty grid of (3 x 3) at the beginning of the game.
  • To start, the human player will choose a grid and it will be represented with "O", and the computer will automatically be given the chance to play and will be represented with "X".
  • The game will go on until all grids are filled or if a winner is determined.
  • A winner will only be determined if the combiantions as set in the game are fulfilled.
  • The game can also be a tie if none of the players hits the winning combinations and all grids are filled.

Deployment

Contributors

This is a collaborative project by us: Suhyeon Jang Grace Mugoiri

Contributing

  1. Fork it (https://github.com/grace-mugoiri/javascript-tictactoe/fork)
  2. Create your feature branch (git checkout -b feature/[choose-a-name])
  3. Commit your changes (git commit -am 'what this commit will fix/add')
  4. Push to the branch (git push origin feature/[chosen-name])
  5. Create a new Pull Request

screenshot of the live game

Screenshot 2022-09-02 at 15 16 11

License

This project is licensed under the MIT License - see the LICENSE file for details

About

building a tic tac toe game that plays humans vs computer

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published