from src.mapfeatures.tile import Tile
from typing import List


class Intersection:

    def __init__(self, neighbouring_tiles: List[Tile], id,
        neighbouring_intersection_ids):
        self.neighbouring_tiles = neighbouring_tiles
        self.id = id
        self.neighbouring_intersection_ids = neighbouring_intersection_ids
        self.captured = False

    def is_neighbour(self, other):
        return other.id in self.neighbouring_intersection_ids

    def __eq__(self, other):
        return self.id == other.id

    def __hash__(self):
        return hash(self.id)

4c0260802e71a63adf1e8b10c6c3e70fcd281f7a
<mask token>


class Intersection:
    <mask token>
    <mask token>
    <mask token>
    <mask token>

<mask token>


class Intersection:

    def __init__(self, neighbouring_tiles: List[Tile], id,
        neighbouring_intersection_ids):
        self.neighbouring_tiles = neighbouring_tiles
        self.id = id
        self.neighbouring_intersection_ids = neighbouring_intersection_ids
        self.captured = False

    def is_neighbour(self, other):
        return other.id in self.neighbouring_intersection_ids
    <mask token>
    <mask token>

<mask token>


class Intersection:

    def __init__(self, neighbouring_tiles: List[Tile], id,
        neighbouring_intersection_ids):
        self.neighbouring_tiles = neighbouring_tiles
        self.id = id
        self.neighbouring_intersection_ids = neighbouring_intersection_ids
        self.captured = False

    def is_neighbour(self, other):
        return other.id in self.neighbouring_intersection_ids

    def __eq__(self, other):
        return self.id == other.id

    def __hash__(self):
        return hash(self.id)

from src.mapfeatures.tile import Tile
from typing import List


class Intersection:

    def __init__(self, neighbouring_tiles: List[Tile], id,
        neighbouring_intersection_ids):
        self.neighbouring_tiles = neighbouring_tiles
        self.id = id
        self.neighbouring_intersection_ids = neighbouring_intersection_ids
        self.captured = False

    def is_neighbour(self, other):
        return other.id in self.neighbouring_intersection_ids

    def __eq__(self, other):
        return self.id == other.id

    def __hash__(self):
        return hash(self.id)
