Class RoyaleFourNode


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

      • RoyaleFourNode

        public RoyaleFourNode​(List<SnakeInfo> snakes,
                              FoodInfo foodInfo,
                              AbstractHazard hazard,
                              BoardInfo boardInfo)
        Constructor, set the information and evaluate/ set score directly
        Parameters:
        snakes - List of snakes
        foodInfo - Food information
        hazard - Hazard Info
        boardInfo - board information
    • Method Detail

      • setScore

        private void setScore()
        Sets the node score