A java implementation of Tic-tac-toe with BlueJ
Go to file
DrMaxNix 2afbde3d01 📝 migrate to git.tjdev.de 2023-03-22 20:33:07 +01:00
src Add files via upload 2021-02-13 18:28:14 +01:00
LICENSE Initial commit 2021-02-13 13:54:38 +01:00
README.md 📝 migrate to git.tjdev.de 2023-03-22 20:33:07 +01:00

README.md

BlueJ-Tac-Toe

Release License Maintaner

BlueJ-Tac-Toe is a java implementation of Tic-tac-toe with BlueJ. This was a school project where we had to program a game of our choice in one week using BlueJ, so it's not the best piece of code but maybe it can help you out.. :)

Installation

Compiling

  • Open src/package.bluej with BlueJ
  • In BlueJ click on Compile

How to run

Start the game

  • Right-click on the Bluejtactoe-class-card
  • Select one of the two constructors (new Bluejtactoe() or new Bluejtactoe(int NEWFIELDSIZE))
  • Maybe enter paramenter and then hit OK
  • (A console window with the board and instructions should pop up)

Make a move

  • Right-click on the red bluejtac1-object-card in the main BlueJ window
  • Select void playerInput(String COORDS)
  • Input the coordinates of your desired cell as a string consisting of a char and a number. (order and case doesn't matter). E.g. playerInput("A3")
  • Hit OK