Myrd
e89324537c
Tweak eval scoring for cards in hand and life for Simulated AI.
2015-02-08 20:38:41 +00:00
Myrd
1963cc94ad
Fix simulated AI finding wrong card in hand when simulating and add a test.
2015-02-08 20:21:23 +00:00
Myrd
2dc5d6da09
Consider planeswalkers with more loyalty counters better, so that AI will activate Liliana's discard ability even if opponent has no cards in hand.
2015-02-08 20:03:12 +00:00
Myrd
2afff9c9c0
Make game state save/restore also affect command zone.
2015-02-08 19:58:05 +00:00
Myrd
457636f2e3
Make simulated AI ignore temp power/toughness boosts in certain cases when evaluating. (Initial version - can be made quite a bit smarter based on this later.)
2015-02-08 19:43:40 +00:00
Myrd
2766caec2c
Fix simulation of unmorph abilities that don't use the stack, with a test.
...
Also, disables a test that started to fail for some reason. Will investigate why it's failing after this commit.
2015-02-08 18:08:51 +00:00
Myrd
188ff29384
Remove println.
2015-02-08 17:50:15 +00:00
Myrd
ff18cb74c8
Fix dumping and restoring game state with morphed creatures.
2015-02-08 17:43:09 +00:00
Sloth
0ea7e765a0
- Improved DigAI.
2015-02-08 14:02:47 +00:00
Sloth
b5dd19867a
- Cleanup and NPE protection.
2015-02-08 13:36:17 +00:00
Myrd
20bd3e3ea9
Fix formatting.
2015-02-07 19:40:20 +00:00
Myrd
8e1feb1dc6
Make a helper class for evaluating a creature, so that it can be more easily customized through subclassing.
2015-02-07 19:39:40 +00:00
Myrd
8a96a479bb
- Fix build that I broke.
...
- Commit some in-progress stack copying code that doesn't work yet (disabled).
- Throw exception when a GameObject couldn't be mapped from the orig game.
2015-02-07 19:18:37 +00:00
Myrd
859a853499
Add a somewhat hidden option in the UI to turn on simulation via a context menu on the AI radio button on desktop.
...
This allows choosing the AI mode without recompiling and also allows things like making a non-simulation AI play a simulation AI.
2015-02-07 18:32:02 +00:00
Myrd
4e1706ad22
Remove some assumptions about ordering of players in simulation AI code.
2015-02-07 17:54:43 +00:00
Myrd
8141b0edb2
Limit some debug output.
2015-02-07 17:52:45 +00:00
Myrd
9b40f6559b
Fix some spammy output that came from my last commit.
2015-02-07 03:13:52 +00:00
Myrd
cfd38b7111
Fix game copy inconsistency with paid echo cost during simulation.
2015-02-07 02:55:48 +00:00
Myrd
62f790e9fe
Add code for debugging simulation copy errors.
2015-02-07 02:31:46 +00:00
Myrd
d5d8e9a11a
Tweak logic for holding off playing creature spells for M2 so that instant/sorceries aren't unfairly selected for M1, in simulation AI.
2015-02-07 01:09:18 +00:00
Myrd
2c25351a2e
Fix ETB effects not triggering during simulation and add a test.
2015-02-06 04:06:11 +00:00
Myrd
7a5c8fd61f
Move USE_SIMULATION boolean to AIController class.
...
Otherwise, with the previous set up, if simulation code returned null (= "don't play anything"), the regular AI code would then choose something to play.
2015-02-06 03:02:03 +00:00
Myrd
ac81b60a1d
Count cards beyond max hand size for less.
2015-02-06 02:48:30 +00:00
Myrd
4819c1e03d
Fix activator being clobbered up during simulation.
2015-02-05 04:21:50 +00:00
Myrd
8b40da32de
Print more info about targets chosen during simulation.
2015-02-05 04:14:23 +00:00
Myrd
be8b250d27
Making the simulation AI less eager to play instants during early phases.
2015-02-05 03:41:23 +00:00
Myrd
392e8e7008
Fix game copy error with equipment.
2015-02-05 02:52:15 +00:00
Myrd
8d5706b36e
Fix copying game with static effects to not double count them along with expanded tests for this.
2015-02-03 04:43:40 +00:00
Myrd
2696f75f16
Add a text file with some high-level TODOs for the AI simulation framework.
2015-02-01 18:03:21 +00:00
Agetian
7f16ada195
- For now, set USE_SIMULATION to false for the default AI configuration in snapshots (I assume it was turned on in r28764 accidentally... if I'm wrong please let me know or feel free to revert)
2015-02-01 05:24:23 +00:00
Myrd
6db238833d
Make simulation AI play creatures in MAIN2 unless they have haste or give bonuses in other ways.
...
Also, properly handle summoning sickness when copying game state.
2015-02-01 01:56:33 +00:00
Myrd
58b2e2b24a
Add first unit test for game simulation AI - tests the fix for activations of ability triggers from my last commit.
2015-01-31 19:02:37 +00:00
Myrd
8dedbf083d
Fix package name.
...
Also, fix cast triggers not resolving during simulation.
2015-01-31 17:30:50 +00:00
Agetian
3d1f812a26
- Removed debug spam that I forgot to take out.
2015-01-31 15:17:25 +00:00
Agetian
92b3dd38c2
- Fixed a bug that prevented the AI from using pump creatures correctly.
2015-01-31 15:16:53 +00:00
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
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