Project of the course of algorithms of data structures.
-
Clone the repository
-
Command line compilation:
cd MNKGame/mnkgame javac -cp ".." *.java cd ../subroutine/ javac -cp ".." *.java
Go to the path: MNKGame/mnkgame/
M
is the number of the rows;N
is the number of the columns;K
is the number of the symbols to juxtapose;P
can be one of:mnkgame.RandomPlayer
(a weak bot developed by the professor)mnkgame.QuasiRandomPlayer
(a strong bot developed by the professor)subroutine.GroupPlayer
(the bot developed by us)
-
Human vs Computer (where
P
is the bot player):java -cp ".." mnkgame.MNKGame M N K P
-
Computer vs Computer:
java -cp ".." mnkgame.MNKGame M N K P P
-
Output score only:
java -cp ".." mnkgame.MNKPlayerTester M N K P P
-
Verbose output:
java -cp ".." mnkgame.MNKPlayerTester M N K P P -v
-
Verbose output and customized timeout (1 sec) and number of game repetitions (10 rounds):
java -cp ".." mnkgame.MNKPlayerTester M N K P P -v -t 1 -r 10
-
Note that you can customize the use of:
-v
,-t
,number
,-r
,number