checks

An abstract strategy board game for two players
Post Reply
flok
Posts: 37
Joined: Sat Jan 02, 2016 9:04 pm
Contact:

checks

Post by flok »

Hi,

Currently, when I've placed a stone, I regenerate the possible chains with for each chain a list of its liberties (I use that liberties-list to see if it is dead or not).
After that, I do an assert if the all chains of the color that just placed the stone, if they all have 1 or more liberties.

What I'm wondering: do you people know of any other useful sanity check to perform?


regards
https://www.vanheusden.com/

https://github.com/folkertvanheusden/
Rémi Coulom
Posts: 219
Joined: Tue Feb 12, 2008 8:31 pm
Contact:

Re: checks

Post by Rémi Coulom »

Hi Flok,

Here are in general the techniques I use to ensure quality of my C++ software:
flok
Posts: 37
Joined: Sat Jan 02, 2016 9:04 pm
Contact:

Re: checks

Post by flok »

Rémi Coulom wrote: Mon Apr 03, 2023 11:27 am Hi Flok,

Here are in general the techniques I use to ensure quality of my C++ software:
Thank you but that was not what I meant: I'm looking for Go-specific checks. But, yeah, maybe it is like chess: more than move-gen-verification is not possible to do in a generic way.
https://www.vanheusden.com/

https://github.com/folkertvanheusden/
Post Reply