Class RoyaleDuelNode


  • public class RoyaleDuelNode
    extends AbstractRoyaleNode
    This Royale Duel node class must be use when only 2 snakes left, and in royale mode. Used by Nessegrev-Beta in the Spring 2021 league
    Version:
    Spring 2021
    Author:
    carl.lajeunesse
    • Constructor Detail

      • RoyaleDuelNode

        public RoyaleDuelNode​(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 Information
        boardInfo - Board Information
    • Method Detail

      • setScore

        private void setScore()
        Sets the node score