THeK3nger / Wings-of-War

A little implementation of Wing-of-War board game for AI 4 GAME final test.
Other
1 stars 1 forks source link

AlphaBetaPruning memory leak #6

Closed ieatmosquitos closed 11 years ago

ieatmosquitos commented 12 years ago

I wrote the real alpha-beta pruning algorithm, that is the "neogen" one (you'll find a couple in the WoWBrain.cpp file).

I made a version that is not the top for memory and time consumption (it copies many times many vectors), but still I had problems in freeing memory.

Maybe we can implement the same algorithm in a different way (which would resolve both the speed problem [relative] and the leak one [important] ) Otherwise, we can try to correct this function in order to correctly free the memory, in a "first make it work" approach.

THeK3nger commented 11 years ago

Have you fixed this bug?

ieatmosquitos commented 11 years ago

Yes I did ;)