magefree / mage

Magic Another Game Engine
http://xmage.today
MIT License
1.86k stars 761 forks source link

[Suggestion] Create a match/board simulator #12505

Open rodrigo815 opened 3 months ago

rodrigo815 commented 3 months ago

Sometimes we wish to rapidly check how some cards work together and it would be great to be able to create a board the way we want, with an imaginary opponent also controlled by us. Managing everything manually: everyone's board/hand/life point/counters/emblems/etc... But having rule enforcement with the press of a button. A play/pause button, maybe.

This would be a great feature for beginners, but also great for content creators and people who want to teach MTG.

JayDi85 commented 3 months ago

You can do it with cheat mode - it allows to setup any board state in single or multiplayer games. See docs on wiki page: https://github.com/magefree/mage/wiki/Development-Testing-Tools

rodrigo815 commented 3 months ago

Awesome! I'll try this right now.

tiera3 commented 3 months ago

Is there any chance that cheat mode could be enabled during a normal game - requiring confirmation from the opponent in the same way that a rollback request requires confirmation. This would be useful in a game where a bug has been identified to correct the boardstate. (In most circumstances it wouldn't be needed, but in the rare case that something goes awry, this would be useful.)

Perhaps not full cheat mode, but more of a manual mode. (Don't need to create cards and add them, but need the ability to move cards/permanents between zones, tap/untap/turn-over cards, add or remove counters, shuffle library, manipulate mana pool, etc) Manual mode should probably pause the chess-clock, and also be able to be turned off again (which would be expected once boardstate was corrected).

In some circumstances, using Manual Mode to adjust the boardstate might be simpler than a rollback - especially if only one or two things need adjusting. (It could also be used where someone misclicked their mulligan choice - rollback doesn't go back to mulligans.)

JayDi85 commented 3 months ago

Nope, really manual mode impossible due game engine. Every movement between zones raise events, triggers, etc. Same for any other actions like counters remove, life changing, etc. You can’t skip it.