GithubHelp home page GithubHelp logo

javascript-tic-tac-toe's Introduction

JavaScript Tic-Tac-Toe

Overview

In tic-tac-toe, the idea is to get 3 X's or 3 O's in a row, either vertically, horizontally, or diagonally. This is a two player game. Players then alternate clicking on an available spot to claim it with their symbol (either X or O). When one player wins, or the game contains no more available spots on the board, the game is over. This action clears the board and restarts the game.

Your Challenge

You'll build a tic-tac-toe game in JavaScript using jQuery to help with manipulating the DOM. No starter files are available to you. You'll need at least an HTML file, a CSS file, and a JavaScript file (ideally, you'll have multiple JavaScript files to help you stay organized). All the logic for the game should be encapsulated in functions written in JavaScript.

The goal of this challenge is to have a functional tic-tac-toe game - you can choose to take it as far as you'd like. You may want to show the winner on the page after the game or add additional functionality!

Finished?

Submit a PR back to this repository with an overview of your approach to this challenge and a description of the easiest/hardest part of this challenge.

Extension

Create the functionality for a user to play against the computer. The computer will always choose the spot with the highest chances to win.

javascript-tic-tac-toe's People

Contributors

case-eee avatar

Watchers

James Cloos avatar Colleen Ward 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.