Tonio2 / Gomoku

The goal of this project is to make an AI capable of beating human players at Gomoku
1 stars 1 forks source link

Heuristic & performance : Detect closed 2 that threatens capture of 5 in a row #84

Open Tonio2 opened 3 months ago

Tonio2 commented 3 months ago

In check_win, can we cache closed2 that threatens capture of 5 in a row.

This has two objectives : -> In subsequent check_win, you can simply check if those structures still exist, which save time -> The heuristic can gives more points to those structure which are way stronger than casual closed 2