Menu

AIHelper

Jan Schäfer

This class is not implemented, yet.

The AIHelper class eases the programming of an AI player by providing several standard calculations.

The specific methods are as follows:

  • Is a hand able to take the current trick?
  • Does a given card take the current trick?
  • Is a hand able to match the required color of the trick?
  • Which is the lowest possible card of a hand?
  • Convert a hand's cards with a given color to a single binary value with a bit for each value (see #27).

The class makes use of the class [GameInfo] which bundles all relevant game information.


Related

Wiki: GameInfo
Wiki: Main_Page

MongoDB Logo MongoDB