Class Potential_player
In: lib/libpplayer.rb
Parent: Object

Play Trap the Cap by using potential fields. For each possible move, calculate the field strength and pick the move with the lowest potential

Methods

Attributes

base_pull  [R] 
capture_bonus  [R] 
enemy_pull  [R] 
friend_pull  [R] 
safe_bonus  [R] 

Public Class methods

Public Instance methods

Find the best move of the possible ones

Calculate the potential score of a position for a given player

Convert a player to a bitstring

Convert a player to a genome

[Validate]