vraskulin
0557b5e89c
list.size > 0 changed to !list.isEmpty
...
We care about if it's empty or not, not about it's size
2017-02-06 14:32:51 +03:00
vraskulin
f60ebfbb1f
All 1-character strings converted to primitives
...
"b" + "r" now changed to 'b' + 'w'. It's more straight-forward, and may cause perfomance improvements - character primitives allocation is faster and less expensive than string creation.
2017-02-06 14:32:51 +03:00
vraskulin
076840df53
Big refactoring
...
I used Intellij IDEA to automatically refactor code to achive 3 goals.
1) get rid of anonymouse classes, and replace the with lamba to get more readeable and clean code (like in TableWaitingDialog).
2) make effectively final variables actually final to avoid inadvertent changes on it in further releases and keep objects as immutable, as possible.
3) Get rid of unused imports (most of the changes) in whole project classes.
2017-01-09 19:16:53 +03:00
ingmargoudt
3128bd2b4b
replace [list].size() == 0 and [string].length() == 0 to use .isEmpty() instead
2016-09-14 15:27:31 +02:00
ingmargoudt
e2a479255a
refactor : removed all instances of new Random() and replaced with RandomUtil for a ThreadLocal randomizer
2016-09-05 15:03:47 +02:00
LevelX2
773decf593
* Fixed a problem with the AI handling of TARGETED event (e.g. Silverfur Partisan not triggering - fixes #1916 ).
2016-04-30 11:42:01 +02:00
Neil Gentleman
bfb428b13a
always use log4j
...
removed all references to mage.util.Logging, java.util.logging
transient static doesn't mean anything, since static fields are never
included in serialization
2015-11-28 21:11:25 -08:00
LevelX2
e0c1492f88
* Fixed a problem that the AI was locked if a attack fee has to be paid but the AI was not able to pay the costs.
2015-10-30 22:34:42 +01:00
LevelX2
8b8097878c
* Reworked/Cleaned card movement handling.
2015-10-11 03:52:38 +02:00
LevelX2
fa0a40b0d6
* Some fixes/chnages to AI player. Needs probably some more testing.
2015-07-12 19:51:04 +02:00
LevelX2
f63fae06de
Some changes to AI player.
2015-06-03 17:08:01 +02:00
LevelX2
67479bb5a4
* Fixed wrong timer handling while other player controlled a player's turn. Attackers now marked with blue frame. Playable cards have a violet frame. If a player has to select cards from hand, the possible cards are marked yellow now. Discard of multiple cards now marks already selected cards and happens in one selection.
2014-11-26 01:48:00 +01:00
LevelX2
b3b51f9f1e
* AI added little passivity penalty for passing turn to get AI more active.
2014-10-03 12:07:59 +02:00
LevelX2
d02f272bca
* Fixed that attacker has not always to assign all damage to multiple blockers. Improved AI behaviour of assigning damage to multiple blockers. Tries to kill blocker if possible now.
2014-08-18 00:46:45 +02:00
magenoxx
de6d1bf46b
Asserting action count in tests. minor changes.
2014-08-15 10:52:37 +04:00
LevelX2
cbb6117b8e
Replaced some replacement effects with restriction effects. Added new method to restriction effect. Improved canAttack methods (not finished yet).
2014-08-01 15:59:59 +02:00
LevelX2
7d2b1c076a
* Combat - Creatures forced to attack can no longer be removed from attack by using the undo button (e.g. Bident of Thassa).
2014-06-20 14:19:03 +02:00
North
1867a150c1
[refactor] removed generic parameter from Player
2014-06-03 11:19:49 +03:00
LevelX2
77fb744991
Set for simulated games of the AI the simulation flag (please report if this causes any problems).
2014-06-02 08:32:22 +02:00
LevelX2
473c9e207b
Fixed (probably) the player1 concedes but other player2 wins. Fixed that if player runs out of timer time or player lose of beeing idle, the match will end correctly.
2014-05-01 19:34:52 +02:00
LevelX2
abfe517c17
* AI player - Fixed a problem that AI uses Sphinx of Jwar Isle ability in an endless loop.
2014-04-30 07:15:01 +02:00
LevelX2
8491b5b90b
* Cleanup of server memory handling - removed memory leaks for Chat, Player, Match, Game etc.
2014-02-21 01:13:27 +01:00
Backfir3
ccc0bf4b6d
Fix missing parameter in after Odric Master Tactician commit
2013-08-06 22:44:04 +02:00
North
0bb110be45
[refactor] moved enums from Constants class
2013-06-16 12:28:10 +03:00
LevelX2
5addb63757
* Changed indestructible to an ability according M14 rule change. Also fixed that for indestructible permanents the DESTROY_PERMANENT event was triggered what led to bugs with abilities like Totem Armor.
2013-06-15 17:57:01 +02:00
LevelX2
caff4ba2fe
Changed a log level of AI log statement.
2013-05-11 20:48:03 +02:00
jeffwadsworth
f6d97367fc
- Added some Dragon Maze cards.
2013-05-02 16:37:21 -05:00
jeffwadsworth
ad99fcad23
- Added some Dragon Maze cards. Improved AI attacking with flying creatures.
2013-05-01 16:00:49 -05:00
jeffwadsworth
4feb0638bd
- Added Ruric Thar, the Unbowed. Little fix.
2013-05-01 11:15:53 -05:00
jeffwadsworth
111f198f3d
- Added some cards. AI will no longer attack with creatures at 0 power.
2013-05-01 10:27:48 -05:00
magenoxx
29b84e0d92
Closed #169 : Make it possible to untap lands
2013-03-29 20:35:16 +04:00
LevelX2
9450074b70
Changed AI X costs handling according human handling. Fixed AI handling of modal spells. Changed some AI setting. Changes to AI lgging.
2013-03-14 23:55:14 +01:00
LevelX2
cb43a58290
Some changes to AI logging.
2013-03-12 17:31:22 +01:00
LevelX2
88b2b9546a
[minor] changes to logging
2013-03-06 17:21:12 +01:00
North
a327668660
fixed possible NPEs
2013-03-02 18:02:09 +02:00
LevelX2
0aa218f6ea
Minor changes to logging of ComputerPlayer.
2013-02-26 08:28:36 +01:00
LevelX2
0af121c3e4
Some more changes to logging of ComputerPlayer.
2013-02-22 08:40:32 +01:00
LevelX2
d5989b32fd
Minor changes to the logging of ComputerPlayer.
2013-02-21 17:05:35 +01:00
LevelX2
f75575f99b
Samll changes to ComputerPlayer logging, FromZone Pick for CardImpl added.
2013-02-21 01:22:10 +01:00
LevelX2
768cf365b9
Some more changes to the logging messages of ComputerPlayer.
2013-02-21 00:07:43 +01:00
LevelX2
1f3dea13af
Some formating and logging changes to ComputerPlayer.
2013-02-20 17:35:30 +01:00
jeffwadsworth
71d01ce9e5
- Another fix for AI blocking. This should work better.
2012-12-31 12:26:27 -06:00
jeffwadsworth
9ac5a1d47e
- Simplified blocking. Freezes should no longer occur.
2012-12-23 21:12:44 -06:00
North
f0b32e7ca3
Removed unused imports
2012-12-20 00:26:21 +02:00
jeffwadsworth
8dcfead462
- Attempt to fix the AI attacking with your creatures. Small enchancements to AI attacking.
2012-11-08 11:57:13 -06:00
jeffwadsworth
ad035f1e47
- Blocking by the AI should no longer freeze. Please post any errors. Small attack AI adjustments.
2012-11-07 14:58:26 -06:00
jeff
1d7e9e55be
- AI will now block and attack a little more sanely. The sim methods are not working right now, so they were commented out.
2012-11-03 21:34:32 -05:00
magenoxx
1454cbb3c8
Fixed Issue#39: Vile Rebirth or Revive always fizzles when cast by AI
2012-08-31 14:31:13 +04:00
magenoxx
cc4d772483
Fixed Issue#53: AI casts Rancor, but Rancor goes to graveyard
2012-08-31 13:46:29 +04:00
magenoxx
c97d5e8a35
AI enhancements
2012-08-03 16:53:01 +04:00