Code Monkey home page Code Monkey logo

tic-tac-toe's Introduction

Project Zero: Tic Tac Toe

Design and coded by Carmen Minikus

Tic Tac Toe is a two player game, which two player alternates in placing symbols into a boxes within a grid space. The first user to have their symbol 3 in a row wins the game.

The Tic Tac Toe game in this code allows users to choose between a green worm-like lama that is running backwards, or a galactic lama flashing in rainbow colors.

The first player gets to choose the their symbol, and once they start pressing into the grid the symbols alternate for the second user to play.

Once any user has got 3 symbols in a row, an animated bounce up score board will display the image of the winning user, and the total score of three games between the two users. After each win, the reset button will need to be pressed to clear the board for the next game.

If the game is a draw, a prompt (using Sweet Alert) will indicate that the game is a draw, and that the reset button will need to be pressed.

tic-tac-toe's People

Watchers

James Cloos avatar Carmen Minikus 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.