|
||
---|---|---|
src | ||
LICENSE | ||
README.md |
README.md
BlueJ-Tac-Toe
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
- Install BlueJ
- Download the files
- Unpack them (don't forget this step, otherwise BlueJ won't be able to open the rest of the files!)
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