peeriop.blogg.se

How to enable ai vs ai ygopro
How to enable ai vs ai ygopro




how to enable ai vs ai ygopro
  1. #How to enable ai vs ai ygopro how to
  2. #How to enable ai vs ai ygopro code

It can be seen in .Decks that the PureWindsExecutor inherits the DefaultExecutor. Public PureWindsExecutor(GameAI ai, Duel duel) Public class PureWindsExecutor : DefaultExecutor (When you try to add this, PureWindsExecutor may have already been written, so change it to a name like NewPureWindsExecutor)

#How to enable ai vs ai ygopro code

Create ExecutorĮxecutor (not related to the Java one), is used to specify the use of each card for your deck.Ĭreate a new cs code file under Game\AI\Decks and name it PureWindsExecutor. Then you should add the deck to the project by right clicking the decks folder in VS -> add -> existing item, then selecting your ydk file in its folder and it should then appear in the folder. When making your deck, remember that the more uses each card has, and the more complicated the deck is, the harder it will be to write your AI.įor this example we will create the ydk file and call it AI_PureWinds and place it in the decks folder of windbot in VS. (please note, WindBot does not work with Percy LAN Mode)

#How to enable ai vs ai ygopro how to

We will be teaching the AI how to use cards, so you will need a good knowledge of how each card in the deck works.įor local testing, using a YGOPro client with LAN mode and latest OCGCore is recommended.Knowledge of how to play the deck you wish to use will be required.Variables, functions, classes, objects, arrays, if, for, and while. RequirementsĬonfirmed to work on VS2019 and VS2015 (VS2010 is theoretically possible). This article takes the preparation of an AI as an example to introduce the method of writing WindBot AI. C# is relatively easy to use, so writing an AI is not difficult. English version translated and wrote by AniHelp the Pure Wind, Szefo09, Sleeser, AntiMetaman






How to enable ai vs ai ygopro