MCPcopy Create free account
hub / github.com/PascalPons/connect4 / possibleNonLosingMoves

Method possibleNonLosingMoves

Position.hpp:187–198  ·  view source on GitHub ↗

* Return a bitmap of all the possible next moves the do not lose in one turn. * A losing move is a move leaving the possibility for the opponent to win directly. * * Warning this function is intended to test position where you cannot win in one turn * If you have a winning move, this function can miss it and prefer to prevent the opponent * to make an alignment. */

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

negamaxMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected