Class ConstrictorNode


  • public class ConstrictorNode
    extends AbstractEvaluationNode
    This Constrictor node class must be use only in constrictor mode.
    Version:
    Summer 2021
    Author:
    carl.lajeunesse
    • Constructor Detail

      • ConstrictorNode

        public ConstrictorNode​(List<SnakeInfo> snakes,
                               FoodInfo food,
                               BoardInfo boardInfo)
        Constructor, set the information and evaluate/ set score directly
        Parameters:
        snakes - List of snakes
        food - Food information not use
        boardInfo - Board Information
    • Method Detail

      • setScore

        private void setScore()
        Sets the node score