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

Class MoveSorter

MoveSorter.hpp:38–86  ·  view source on GitHub ↗

* This class helps sorting the next moves * * You have to add moves first with their score * then you can get them back in decreasing score * * This class implement an insertion sort that is in practice very * efficient for small number of move to sort (max is Position::WIDTH) * and also efficient if the move are pushed in approximatively increasing * order which can be acheived by using a

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected