Code Monkey home page Code Monkey logo

3dtictactoe's Introduction

Course: COL333(Autumn'17): Artificial Intelligence
Assignment 1: 3D Tic-Tac-Toe
Creators: 2015TT10917, Navreet Kaur
	  2015CS10207, Aditya Sahdev

- - - - - - - - 3D Tic-Tac-Toe game with AI - - - - - - - - 

Files:

1)main.java: 
Run this file to play the game. This class contains the main function and works as the main script, creating object for the magic_cube class and ttt class. The user is first asked if they want to play first and is then required to choose from the following options as the winning strategy:
	(a) one collinear line
	(b) two collinear lines
	(c) who so ever gets more lines than its opponent after the 20th move

2) ttt.java:
This class governs all the actions computer takes to interact with the user and chooses the next move while utilising magic_cube as the 3D cube on which the game is played.


3)magic_cube.java:
This class uses the concept of a magic cube to implement an algorithm to create a 3D Magic Cube of 11 surfaces. It also implements some collinearity conditions to generate the three essential lists based on sum and collinearity. 


4)Tuple.java:
The Tuple class is a way of storing a set of three integers as a tuple object, which is used in the magic_cube.


Compilation Instructions:

javac *.java
java main

3dtictactoe's People

Contributors

navreeetkaur avatar

Watchers

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