Coder Social home page Coder Social logo

minimax-tic-tac-toe's Introduction

Tic Tac Toe

description

This programme is a java based Tic-Tac-Toe game using javafx.

This game can be played both using a GUI (javafx) and a CLI. The code with architected using OOP in such a way that it could be easily ammended. Features that I hope to implement in future is

  • allow user to edit the settings of the game (name of players), colour of shape?
  • allow user to play against a Bot that can't lose
  • host the game on a network and play over it

installation

Run in terminal Simply clone this repository and run the Game.java file using the conventional java commands that you would use to run a java programme.

Run GUI: I am a novice at javafx so I don't know if I would be able to set up this on anther machine. If you would like to tinker around and get this working on your machine then you must at least have

  • the javafx sdk downloaded somewhere on your machine
  • an environment variable called PATH_TO_FX
  • run the commands in build.sh

NOTE the build.sh file is a linux bash file, so if you are on windows just change the file extension to .bat and you should be able to get something working...

Pictures

Below you can find examples of how the game looks when its run in the terminal

A game of tic tac toe run in the terminal

And how it looks when its run with a GUI

A game of tic tac toe

minimax-tic-tac-toe's People

Contributors

sbu-05 avatar

Stargazers

Sibu avatar

Watchers

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