HELP NEEDED: VS AI is it possible?

Hello! We met yet again in another thread. I am wondering if it’s possible to make a game where the player goes against ai like a chess game for example in which the player and ai take turns. I am aure this might be had but I qas just wondering; and if it’s possible to do it with #c, is there any good tutorial for it?

With love,
Admone

Chess AI is very difficult but absolutely possible to program in almost any language. I wouldn’t recommend it for a beginner.

The algorithm you want to read up on for this sort of game is called “minimax, with alpha-beta pruning.” You can find some brief tutorials about it here and here (caution: hurts the eyes), and some C# implementations here and here.

But Jeffrey’s right, this may be a bit challenging for a beginner. If however you already have some programming experience, then these references ought to get you started.

1 Like