Tic Tac Toe
Installation
Windows
Clone git repository:
$ git clone https://github.com/MiltenPlescott/tic-tac-toe
Build:
$ gradlew.bat build
Run:
$ gradlew.bat run
Run with arguments:
$ gradlew.bat run --args="here come the arguments"
Run JAR:
$ java -jar build/libs/tic-tac-toe.jar
Run JAR with arguments:
$ java -jar build/libs/tic-tac-toe.jar here come the arguments
Generate and open javadoc:
$ gradlew.bat javadoc
$ start build/docs/javadoc/index.html
Linux
Clone git repository:
$ git clone https://github.com/MiltenPlescott/tic-tac-toe
Build:
$ ./gradlew build
Run:
$ ./gradlew run
Run with arguments:
$ ./gradlew run --args="here come the arguments"
Run JAR:
$ java -jar build/libs/tic-tac-toe.jar
Run JAR with arguments:
$ java -jar build/libs/tic-tac-toe.jar here come the arguments
Generate and open javadoc:
$ ./gradlew javadoc
$ xdg-open build/docs/javadoc/index.html
Command line arguments
Choosing a symbol, that will represent user's moves:
[-s|--user-symbol <symbol>]
- Available symbols: X, O
- Default symbol: X
Choosing game difficulty:
[-d|--difficulty <difficulty name|number>]
- Available difficulty levels: random (1), easy (2), impossible (3)
- Default difficulty: impossible (3)
Choosing who starts the game:
[-u|--user-starts <boolean>]
- Available boolean: true (1), false (0)
- Default: true - user goes first
License
Tic Tac Toe is available under MIT License. See LICENSE.txt for more information.
SPDX-License-Identifier: MIT