Giter VIP home page Giter VIP logo

xtreme-tictactoe-bot's Introduction

Xtreme-TicTacToe

Prerequisites

   Python 2.7

Introduction

   * The Extreme TicTacToe is an extension of 3x3 Ultimate TicTacToe which in turn is an extension of
     standard 3x3 TicTacToe. Extreme TicTacToe comprises of 2 boards of 3x3 board in which each cell
     further is a 3x3 board.

alt text

   * The board structure is as shown above. We will refer to the whole board as BigBoardand each small board
       as SmallBoard from now on.Hence, each cell of BigBoard is aSmallBoard and SmallBoard itself has 9 cells.

   * As we have 2 boards we will call BigBoard1 and BigBoard2 respectively. And theirsmall boards will be called
       SmallBoard1 and SmallBoard2 respectively

Rules

  • FIRST MOVE:The first player takes the first move and it is a free move. The player is free to move anywhere i.e. in any cell of any SmallBoard1 or SmallBoard2.

  • CORRESPONDENCE RULE: When a player places his marker in any of the cell, the next player can only place marker in a SmallBoard1 or SmallBoard2 corresponding to that cell. For Example: If a player places his marker in Top RightCorner cell of a SmallBoard1 then the next player can only place his marker in available cells of the Top Right Corner SmallBoard1 or Top Right Corner SmallBoard2.

  • ABANDON RULE:Once a SmallBoard is won by some player, that SmallBoard isabandoned and it has to be considered full, i.e. no more markers can be placed in thatSmallBoard.

  • OPEN MOVE:In case all the cells of both the destined SmallBoards from “Cor-respondence Rule” are occupied or if both the destined SmallBoards are abandonedaccording to “Abandon Rule”, then the move is considered to be an open move, i.e.the player can move anywhere, on any available cell of any of the SmallBoards, giventhat SmallBoard is not abandoned.

  • BONUS MOVE:If a player places his marker in a cell of a SmallBoard and thisleads to the player winning that SmallBoard, then the he/she gets a bonus move, i.e.,he/she gets to move again. This bonus move is limited to 2 SmallBoard wins, i.e., Ifyou win another SmallBoard by placing the marker again in your bonus move, youdon’t get another bonus move.

  • WIN RULE:The player who places their markers on 3 cells of a SmallBoard suchthat they form a vertical or horizontal line or 3 cells such that they form a diagonalwins that SmallBoard. Similarly, player who wins 3 SmallBoards such that theyform a vertical or horizontal line or win 3 SmallBoards such that they form a diagonalwins the whole game. The first player to make the winning pattern on any one ofthe BigBoards wins the game.

alt text

How to run

   Just  import your class from your code and call its move function in Simulator.

xtreme-tictactoe-bot's People

Contributors

akki111singh avatar akhilsingh111 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.