Commit Graph

21 Commits (master)

Author SHA1 Message Date
Leandro Doctors 2733516cb9 Organize imports 2020-01-16 08:21:24 +08:00
Bilbo 10bfd0ddd9 Add ability to skip cards for the test. 2019-12-08 09:08:15 +01:00
Bilbo 120e019c95 Refactor Commandline parsing. 2019-12-08 09:08:15 +01:00
Bilbo 22a1471424 Add "card test" mode that tests all cards in a predefined scenario. 2019-12-06 23:04:39 +01:00
Martin Petricek bd5ae5fd7a Refactoring (#1543)
* Fix typos.

* Remove unnecessary boxing/unboxing.

* Replace traditional 'for' loops with 'foreach' loops.

* Replace explicit types with <> (diamonds) where they can be inferred.

* Collapse identical catch branches.

* Replace statement lambda with expression lambda for short statements.

* Remove unnecessary imports.

* Replace some lambdas with Comparator.comparing

* Replace Runnables with lambdas.

* Use addAll instead of adding whole collection manually.

* Simplify boolean expressions.

* Remove redundant 'else'.

* Simplify some boolean conditions that are always true or false.

* Inline redundant local variables.

* Remove extraneous semicolons.

* Fix Javadoc errors.

* Replace anonymous classes with lambdas.

* Replace chain of 'if's with switch.

* Remove delaration of exception that is never thrown.

* Use String/StringBuilder properly.
2018-04-08 08:59:14 +08:00
melvinzhang 88e3c7646d rename HeadlessAiGame -> HeadlessAIGame, add --headless argument to MagicMain 2017-06-12 14:38:10 +08:00
lodici 1d3b6fb2bf Add HeadlessAiGame class. 2017-06-11 22:44:12 +01:00
lodici eb81f19dab adds two new command line parameters : "--fps" and "--showfps". 2017-05-19 01:23:24 +01:00
lodici 4d384f8f58 fix: CommandLineArgs was overriding -DdevMode setting. 2017-05-13 22:36:05 +01:00
lodici 57480bc1da adds "--deck" command line arg which can be used to set an AI player's deck. 2017-05-11 23:01:09 +01:00
lodici b43a642846 adds "--help" command line arg which shows wiki help page in browser then exits. 2017-05-11 11:20:36 +01:00
lodici b039b99fcc adds "--test" command line arg for running specified test game, equivalent to -DtestGame VM arg. 2017-05-11 09:12:03 +01:00
lodici 0c176c7012 adds "--life" command line arg for setting starting life in AI v AI game. 2017-05-10 13:20:23 +01:00
lodici b6b8a7d733 adds "--games" command line arg for AI v AI game. 2017-05-10 12:49:39 +01:00
lodici e4f4fc63b3 CommandLineArgs should be transient and just parse arguments or provide default values. 2017-05-10 10:29:44 +01:00
lodici 60a51b477f remove obsolete and non-functioning "disablelogviewer" command line arg (introduced in d7c55171e7). 2017-05-10 10:06:36 +01:00
lodici 18105f1e98 update command line args comments. 2017-05-10 09:50:56 +01:00
lodici fb64bd6e8e adds "--devmode" command line arg, same as -DdevMode=true VM arg. 2017-05-10 09:46:50 +01:00
lodici 2660653acb adds "--threads" command line arg to limit threads used by AI when running simulated games. 2017-05-09 23:02:55 +01:00
lodici 2729a26a1a adds "--nofx" command line arg to switch off gameplay animations. 2017-05-09 22:21:15 +01:00
lodici b07538a154 add option to specify each AI type and level when running a UI AI v AI game from the command line. 2017-05-09 22:03:51 +01:00