miniMax algorithm

hey guys i need to implement minimax algorithm to my basic console xox game.any help appreciated. https://github.com/fcokur/xox
GitHub
GitHub - fcokur/xox
Contribute to fcokur/xox development by creating an account on GitHub.
3 Replies
ZacharyPatten
ZacharyPatten2y ago
is a school assignment? what are you struggling with? also, don't use Convert.ToInt32 right now your app has bugs
Marcelo Burlon
it s not homework.i am just practicing data structures and algorithms. yeah its better if i use tryparse @ZacharyPatten i cant understand how minimax algorithm works at some point
ZacharyPatten
ZacharyPatten2y ago
for the minmax algorithm you simulate making all possible moves until an end game state is reached. if the state is a loss you return -1. if it is a win you return 1. You add up all those results into the previous simulated move's score. the move with the highest score is considered the optimal move
Want results from more Discord servers?
Add your server
More Posts
Deserialize wrapper object in routeHello. Does anyone know if it is possible to map deserilize a custom wrapper object in a route? IDsVS JB Mono font not looking like Rider JB Mono font [Answered]I have to use vs 2022 due to rider not supporting xaml hot reload and am trying to make it look simiJsonSerializer.DeserializeAsync() randomly hangs indefinitely [Answered]```cs private static async Task<T> TryReadDataFromFile<T>(string basePath) where T : class { vardotnet6 project failing on static abstracts with preview features set to true``` C:\Users\Kellen James\source\Repos\ClemBot\ClemBot.Api\ClemBot.Api.Core\Features\Tags\Edit.cs(51I need to serialize a bunch of non-primitive types. How would I do this?I'm using JsonSerializer.serializeToUtf8Bytes I need to serialize a class that contains a bitmap, anWhen to use ValueTask?Despite having used C# for a while I'm... not *that* familiar with async. I know people sometimes saHow would you design a solution to this problem?unsure what would be the best approach - I have a SQL table that stores SMS 3rd party providers. EWrite a String manipulation program [Answered]I have two strings. One of them contains completely the entire other string. While that other stringC++ Interop - writing a shim to use an existing c++ library [Answered]So I'm currently trying to make a shim for a C++ library that I can then call from C#. The original Are there dedicated .net framework or ASP discords? [Answered]Are there dedicated .net framework or ASP discords? If so pls link 😳