Myrd
48e20a9b67
Remove assumption about having a single opponent in game scoring function for AI simulation.
2015-01-29 03:56:28 +00:00
Myrd
e332b383e9
Reduce some spam in simulation AI:
...
- Don't evaluate mana abilities.
- Produce a diff of the game eval state instead of printing out two full sets.
- Cut down on some extra evaluations.
2015-01-29 03:35:24 +00:00
Myrd
4e7565dd2a
Create a LobbyPlayerAI when simulating, so that UI elements don't pop up to the human.
2015-01-29 03:02:31 +00:00
Myrd
e22029463d
Commit initial version of experimental AI simulation code.
...
It's disabled by default. Set SpellAbilityPicker.USE_SIMULATION = true to enable.
It's nowhere near complete and there are still tons of issues to work out, but it works a lot of the time.
2015-01-29 00:27:02 +00:00
elcnesh
92b80c69ff
Refactoring changes and other updates:
...
- Completely refactor continuous static effects. Layers are now implemented properly in the sense that every effect applies the relevant parts in the relevant layer, while locking in the set of cards to which it applies.
- Refactor the (un)freezing of Trackable objects to a per-game Tracker object rather than static methods, to allow multiple games hosted on the same machine.
- Refactor the changing of card colours to match other parts of the code (like type and P/T changing) more closely. Also get rid of some static parameters in that code.
- Some changes in how split cards on the stack are handled to make them more robust.
- Some more minor changes/cleanup.
2015-01-26 10:41:06 +00:00
Sloth
b30939d14d
- Updated some AI SVars of FRF cards.
2015-01-25 09:43:50 +00:00
Sloth
a8c4e0f83e
- Improved AI using Sultai Emissary and Ethereal Ambush.
2015-01-24 13:21:11 +00:00
Sol
16a4ee3dc9
- Adding basic AI for Manifest cards
2015-01-23 22:24:52 +00:00
Krazy
7e4cd4b717
[maven-release-plugin] prepare for next development iteration
2015-01-23 03:50:25 +00:00
Krazy
141a20570b
[maven-release-plugin] prepare release forge-1.5.33
2015-01-23 03:50:15 +00:00
Sol
e576dbcf93
- AI will no longer cast Bolster with no creatures on the BF
...
- Manifest Ability can't be activated if the original card isn't a creature
2015-01-18 17:00:03 +00:00
excessum
96bc050509
- AI will not use Dash if it can cast the creature normally
2015-01-18 02:00:21 +00:00
excessum
a32272a0d8
- AI will only use Dash if the creature is attacking
2015-01-18 01:48:02 +00:00
Myrd
47a3a173b6
Refactor helper function.
2015-01-16 03:35:52 +00:00
Myrd
03631aef2e
Fix indentation.
2015-01-16 03:31:48 +00:00
swordshine
997d8795a5
- FRF: Added Tasigui, the Golden Fang and Diplomacy of the Wastes
2015-01-14 05:18:27 +00:00
swordshine
ed444c2705
- FRF: Added Grim Contest
2015-01-12 14:14:18 +00:00
Chris
cfe726e14a
update poms to 1.5.33
2015-01-08 03:25:07 +00:00
Myrd
2853af3a10
Support saving/restoring game state that has creature tokens.
2015-01-03 19:15:44 +00:00
Myrd
c2904fa2aa
More visitors for keywords and merge duplicate keyword amount methods.
2014-12-31 03:57:16 +00:00
swordshine
ff26173d64
- FRF: Added Kolaghan, the Storm's Fury (Keyword: Dash)
2014-12-30 10:54:52 +00:00
Myrd
bf34aec4fc
Get rid of global static Card cache and hang it off the Game instead.
...
This paves the way for having multiple simulataneous game objects (e.g. for simulation).
2014-12-28 16:31:23 +00:00
Myrd
0d53b46c91
Support saving/restoring empty zones.
2014-12-18 16:40:38 +00:00
Myrd
af3c5459c3
Move GameState class to AI project, where it can be used both by the human AI as it is now, and (in the future) by the AI, to help with simulating / restoring game state.
2014-12-18 16:11:10 +00:00
Myrd
6be85a1741
Fix shard sort order when deciding if a mana cost is payable.
...
Prior to this change, the logic would conclude that a {1}{W} cost is not payable with an untapped Scoured Barrens (w/b) and Jungle Hollow (b/g) on the field.
The code is unfortunately too tangled (has too many dependencies) to write a unit test for this. Ideally, we should refactor so it wouldn't depend on the player, etc and just take parameters that can be fed test data.
2014-12-16 20:26:41 +00:00
Myrd
8c25bfd8b7
Refactor duplicated logic into a function.
2014-12-16 20:04:57 +00:00
elcnesh
6de61cb9a6
Code cleanup: make a lot of methods static and remove some unnecessary interface implements and casts.
2014-12-10 18:40:19 +00:00
elcnesh
ea23bb33b2
Codechanges and lots of fixes related to playing other player's cards from exile.
...
- Cards now keep track of who's allowed to cast them, fixing possible issues in multiplayer.
- Face-down cards can now be properly looked at when allowed to by a static ability.
- Improve support for casting a face-down exiled card in general.
- Add Shared Fate (including AI support).
2014-12-03 08:49:49 +00:00
drdev
5eeb302ce8
Add activate callbacks for zoom view
2014-11-30 07:05:40 +00:00
Sloth
f57df312c0
- Improved AI handling Mishra's Factory.
2014-11-29 12:03:55 +00:00
Chris
313c439d40
[maven-release-plugin] prepare for next development iteration
2014-11-28 15:37:56 +00:00
Chris
5361ac01c1
[maven-release-plugin] prepare release forge-1.5.31
2014-11-28 15:37:42 +00:00
drdev
4c6bd6a715
Prevent race condition when selecting multiple abilities using Shift+click
2014-11-27 02:05:26 +00:00
Sloth
548574484d
- Added AI support for Flash Foliage.
2014-11-25 13:25:55 +00:00
Sloth
5629895c22
- Improved LifeGainAi.
2014-11-24 23:13:22 +00:00
Sloth
bd40daa905
- Added AI support for Grim Monolith.
2014-11-24 13:56:06 +00:00
Sloth
bff7f28000
- Added Myriad Landscape.
...
- Fixed chooseSomeType AI function for land types.
2014-11-23 22:33:28 +00:00
Sloth
ede4c1bc7c
- Cleanup and little improvements in EffectAi.
2014-11-19 22:49:22 +00:00
Chris
9663a86c82
[maven-release-plugin] prepare for next development iteration
2014-11-14 14:54:13 +00:00
Chris
bc1b9b955b
[maven-release-plugin] prepare release forge-1.5.30
2014-11-14 14:53:50 +00:00
Sloth
350c5ffc72
- Improved Curse Pump AI.
2014-11-09 16:07:15 +00:00
Sloth
356c8bd2d4
- More AI improvements for Ajani Vengeant and Koth of the Hammer.
2014-11-09 13:58:29 +00:00
Sloth
05b3fa2644
- Added activateForCost part to PumpAI.
2014-11-08 22:30:03 +00:00
Sloth
9831eeba45
- Improved AI using The Chain Veil.
2014-11-08 21:49:19 +00:00
Sloth
7bbc917998
- Improved AI using Koth of the Hammer.
2014-11-08 21:46:30 +00:00
Sloth
14196fedc1
- AI will now play Moxen in Main1.
2014-11-08 21:43:06 +00:00
Sloth
d572f506de
-Improved AI using Sarkhan, the Dragonspeaker.
2014-11-08 21:35:31 +00:00
Sloth
b46c4292b6
- Little improvements in AttachAi.
2014-11-05 23:12:53 +00:00
Sloth
230ea2c61d
- Cleanup.
2014-11-05 12:08:04 +00:00
Sloth
fe770a48ba
- Added a new AI SVar: AmbushAI. Creatures with it will be played when the opponent is attacking.
2014-11-01 20:37:38 +00:00