This repository has been archived on 2025-05-08. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
NEAT/connectiongene.py
2019-05-06 16:36:43 +02:00

10 lines
423 B
Python

class ConnectionGene:
def __init__(self, into: int, out: int, innovation: int, weight: float, enabled: bool):
self.into: int = into
self.out: int = out
self.innovation: int = innovation
self.weight: float = weight
self.enabled: bool = enabled
def copy(self) -> 'ConnectionGene':
return ConnectionGene(self.into, self.out, self.innovation, self.weight, self.enabled)