Coder Social home page Coder Social logo

gervinfung / tictactoe Goto Github PK

View Code? Open in Web Editor NEW
2.0 1.0 0.0 524 KB

Simple AI Tic-Tac-Toe Game made with Java Swing. Choose against AI or human. You can play in 3x3 grid up to 10x10.

License: GNU General Public License v3.0

Java 100.00%
tictactoe tictactoe-java-game minimax alpha-beta-pruning multithread swing-background game

tictactoe's Introduction

Getting Started

  • I have decided to rewrite a TicTacToe game as the previous version is written badly
  • Started TicTacToe to understand how MiniMax algorithm actually works

Folder Structure

The workspace contains two folders by default, where:

  • src: the folder to maintain sources
  • lib: the folder to maintain dependencies
  • res: the folder to maintain resources

To start the game

This is a multithreaded tic-tac-toe game that allows user to choose between playing against AI or another friend

No. Steps
1. Double click TicTacToe.jar file
2. There's a menu that let you decide AI level, Grid Level, Start or Exit Game
3. Watch 2 AI play against each other, or play against your friend, or play against AI
4. User must choose the grid layout before they can start the game, which range from 3x3 and 10x10
5. The game will restart when there's a winner, or it is a draw
6. Different game layout can be chosen as well

3x3 sample 4x4 sample

JAR file location

TicTacToe.jar

tictactoe's People

Contributors

gervinfung avatar

Stargazers

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