Class WrappedRoyaleNode


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

      • WrappedRoyaleNode

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

      • setScore

        private void setScore()
        Sets the node score