Category : minimax

I am currently trying to code a generic minmax algorithm. I am fairly new to c++ with background in c and arm asm programming. For the MinMax-Algorithm im using a variant called the Negamax, which makes it a little more compact: #define move typename game<evaluationtype>::_move #define gamestate typename game<evaluationtype>::_gamestate #define player typename game<evaluationtype>::_player template <typename ..

Read more

I am trying to implement the minimax algorithm in my tic-tac-toe game so that the computer is "unbeatable" but am having trouble trying to implement it, I am currently segfaulting because it is infinitely calling itself and never hitting any of the base cases. the function call is in the computer move turn function, i ..

Read more

I am trying to create a c++ unbeatable tic tac toe AI. after watching several videos on the topic i thought I had it all figured out. An error pops up on the screen saying "Expression: vector subscript out of range". I believe the error is coming from the availableMoves() function. however I do not ..

Read more