![]() So I think I have to create a fake/mock copy (with the properties that are needed, list of available moves, piece color, player, etc.) of the game/board and send that to the AI. I feel like it will crash, because whenever the AI tries a movement, it will try to get updated on the board which results in a crash. Because the second player is basically using the board. Whenever I'm calculating the move for the AI using minmax, I'm trying to place movements on the board, but the problem is this should not be on the board. This is a 2-Player Chess Game with two different. I order to move a piece, you should first click the piece you want to move then hold down the shift key and click a destination sqaure for the piece selected. But I'm wondering, that this is the wrong way. MVC stands for Model View Controller which is a pattern used for implementing a user interface. ![]() Now I'm currently struggling how to handle the game state to the AI.īecause I feel like the AI, needs the up to date properties from a board, or game class (in my case, I send a game class). ![]() I'm currently implementing a chess AI into my chess game. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |