Coder Social home page Coder Social logo

tictactoe's Introduction

TicTacToe

About Tic-Tac-Toe

Tic-tac-toe, noughts and crosses, or Xs and Os is a paper-and-pencil game for two players who take turns marking the spaces in a three-by-three grid with X or O. The player who succeeds in placing three of their marks in a horizontal, vertical, or diagonal row is the winner.

How to run this project?

For running the project, follow the following steps:

  • Make sure you are on a Mac and running Xcode 13.
  • Clone this repository via https://github.com/2022-DEV-029/TicTacToe.git.
  • Open the file /TicTacToe/TicTacToe.xcodeproj.
  • Select TicTacToe as the schema to run and select any of the iPhone simulators available.

About this project

This TicTacToe project is made following clean swift architecture and test driven developmemnt(TDD) to run on a Device running iOS 15.4 or later.

Rules

  • X always goes first.
  • Players cannot play on a played position.
  • Players alternate placing X’s and O’s on the board until either:
    • One player has three in a row, horizontally, vertically or diagonally
    • All nine squares are filled.
  • If a player is able to draw three X’s or three O’s in a row, that player wins.
  • If all nine squares are filled and neither player has three in a row, the game is a draw.

Screenshots

iPhone 12 screenshot:

Initial:

Initial

Win:

Win

Draw:

Draw

References

tictactoe's People

Contributors

2022-dev-029 avatar

Watchers

 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.