Skip to content

Instantly share code, notes, and snippets.

View ximecediaz's full-sized avatar

Ximena Cervates Díaz ximecediaz

View GitHub Profile
# -*- coding: utf-8 -*-
"""
Introducción a los Algoritmos Geneticos
Autor: Guillermo Izquierdo
Este código es para fines educativos exclusivamente.
"""
geneSet = 'abcdefghijklmnñopqrstuvwxyzABCDEFGHIJKLMNÑOPQRSTUVWXYZ '
target = 'Hola Mundo'
@Nicholas-Swift
Nicholas-Swift / astar.py
Last active May 12, 2024 18:34
A* pathfinding algorithm. Please see comments below for a fork of this gist that includes bug fixes!
class Node():
"""A node class for A* Pathfinding"""
def __init__(self, parent=None, position=None):
self.parent = parent
self.position = position
self.g = 0
self.h = 0