Class FourNode


  • public class FourNode
    extends AbstractEvaluationNode
    This FourNode class must be use when only 3 or 4 snakes left, and in standard mode.
    Version:
    Spring 2021
    Author:
    carl.lajeunesse
    • Constructor Detail

      • FourNode

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

      • setScore

        private void setScore()
        Sets the node score