Commit Graph

506 Commits (master)

Author SHA1 Message Date
Leandro Doctors 2733516cb9 Organize imports 2020-01-16 08:21:24 +08:00
Bilbo 22a1471424 Add "card test" mode that tests all cards in a predefined scenario. 2019-12-06 23:04:39 +01:00
Ada Joule 2a0d8c0394 Add player argument to ChangeCountersAction (#1549)
* Add source argument to ChangeCountersAction

* Add source argument to usages of ChangeCountersAction in event package

* Update usages in DealDamageAction

* Update usages in trigger package

* Change source argument to player argument

The oracle text refers to the player putting counters, so it's more
logical to have a player argument.

* Add player data to MagicCounterChangeTriggerData

* Update DealDamageAction

* Change to player in event package

* Change to player argument in trigger package

* Add import

* Fix usage in test package

* Fix usage in groovy scripts

* Fix bug
2018-04-10 12:08:37 +08: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 fdd59a5793 record correct solution found by MCTS-8 for TestNoxious, closes #174 2017-08-08 22:27:08 +08:00
melvinzhang c0984812be add Dune Diviner and Hostile Desert to TestNoChoice show case where there is no valid Desert to tap, for #1177 2017-07-13 10:31:37 +08:00
melvinzhang bbbdcac9ef add override annotation to overridden methods 2017-06-17 11:19:03 +08:00
lodici a6d82d0a94 revert inadvertent commit of amended TestSearch. 2017-05-17 06:27:22 +01:00
lodici 3588ba6b7e rename showCards() to showCardsToChoose() 2017-05-16 16:42:09 +01:00
ShawnieBoy 21926c0ef2 add Embalm ability - still requires removal of token's casting cost 2017-04-22 23:49:51 +01:00
lodici 0c1a7d5ae8 remove unused import statements and sort. 2017-04-08 08:26:41 +01:00
ShawnieBoy 6b30fc1824 add additional 'flicker' abilities to TestRevolt #1066 2017-02-04 22:10:07 +00:00
ShawnieBoy 9580b71b30 add TestRevolt #1066 2017-02-04 21:57:40 +00:00
ShawnieBoy 910627885a add Copy Enchantment, Tranquility and comment to TestTokenCopy #1063 2017-02-04 00:04:37 +00:00
ShawnieBoy eec2c87257 add additional Copy spells to TestTokenCopy #1063 2017-02-03 23:58:54 +00:00
ShawnieBoy ed777a7465 add TestTokenCopy #1040 #1044 2017-01-26 15:12:20 +00:00
ShawnieBoy 3e32be243b remove unecessary quantifiers for TestMiracle 2017-01-14 03:12:39 +00:00
melvinzhang abe4ab9b82 add test case for Miracle mechanic, for #325 2017-01-14 10:45:02 +08:00
ShawnieBoy ec0c30239e add explanatory comments about Test Classes related to Issues 2017-01-10 22:54:36 +00:00
melvinzhang 8a8f03509f consolidate getCardImage and getPermanentImage into getImage to reduce duplication of image rules 2016-10-06 09:14:15 +08:00
ShawnieBoy ddd4c0df08 add TestPact 2016-10-02 17:05:07 +01:00
ShawnieBoy 3c35b13a25 change Test class names to match java name 2016-10-02 16:25:20 +01:00
melvinzhang c0a6028e9e move morph activations to card layer as permanent no longer check game layer, fixes #921 2016-09-29 08:59:22 +08:00
melvinzhang 23320a1e5d fix capitalization of Aether Vial in test 2016-09-28 10:10:51 +08:00
ShawnieBoy 035b96a6a6 Update other file references to Æ 2016-09-27 14:30:03 +01:00
ShawnieBoy 1b704fe3dd update TestMonarch to include combat and state-check triggers 2016-09-19 15:20:22 +01:00
ShawnieBoy 2f98ecfff0 Monarch attempt (Non-functional) with TestMonarch and sample card. 2016-09-18 16:43:02 +01:00
melvinzhang fc2ca79e40 create new trigger type WhenTransforms, fixes #822 2016-08-09 10:38:00 +08:00
melvinzhang 34482b128c add test case to replicate #822 2016-08-09 09:04:41 +08:00
melvinzhang 1f3edff04e add Wretched Gryff and test scenario for emerge 2016-07-02 10:43:28 +08:00
melvinzhang 78cdce7276 add test case to replicate issue #779 2016-06-18 19:24:01 +08:00
ShawnieBoy 01677fe3dd add TestBlockTriggers 2016-06-15 16:32:11 +01:00
melvinzhang 357ad523e0 add test class for issue #765 2016-05-22 10:22:56 +08:00
melvinzhang 479a23e380 add test for issue #763, unable to reproduce bug 2016-05-11 20:56:47 +08:00
melvinzhang 6fbf0062a4 add test to replicate #759 2016-05-11 20:56:47 +08:00
melvinzhang 6e12436025 add test class to replicate issue #760 2016-05-04 08:51:59 +08:00
melvinzhang 178f036b6f include Ravnica land in test case for #750 2016-04-05 20:20:35 +08:00
melvinzhang 8cb9a2c94a add test class to replicate issue #750 2016-04-05 20:00:16 +08:00
ShawnieBoy 6bf29c32c0 add TestSunbringer re #734 2016-03-21 17:26:21 +00:00
ShawnieBoy d1cf1f33d8 add TestLoseControl for #714 2016-02-23 15:02:05 +00:00
melvinzhang ffee02969f add test case for #673, unable to replicate 2016-02-23 20:40:37 +08:00
melvinzhang e62d7e2d50 add test case for #677, but unable to replicate 2016-02-23 20:19:27 +08:00
ShawnieBoy 913cc9accd add TestCombatControl for #707 2016-02-21 12:03:09 +00:00
ShawnieBoy 0617c6aed9 add TestAbilityChoice for #706 2016-02-20 14:20:00 +00:00
melvinzhang 9dcce122f4 add test for cost increasers 2016-02-18 10:08:45 +08:00
ShawnieBoy 8150dc8d9b add TestUgin for #697 2016-02-17 21:58:52 +00:00
ShawnieBoy e9e6dcc857 enable addToLibrary without int to match other methods 2016-02-17 21:32:08 +00:00
ShawnieBoy 207d177ab2 add extra Dragon to TestZodiacDragon 2016-02-12 16:34:46 +00:00
ShawnieBoy d8c55ccfef add TestZodiacDragon for #690 2016-02-11 15:41:33 +00:00
ShawnieBoy 72e8c9dd8a add Mind Stone to TestTarmogoyf to allow manual increase in toughness 2016-02-10 11:24:14 +00:00