Skip to content

Instantly share code, notes, and snippets.

View THeK3nger's full-sized avatar
🍕
I need a pizza. As usual.

Davide Aversa THeK3nger

🍕
I need a pizza. As usual.
View GitHub Profile
@THeK3nger
THeK3nger / AStar.cs
Created December 1, 2013 13:57
Minimal and generalized C# version of the A* algorithm
using System;
using System.Collections.Generic;
using System.Diagnostics;
/// <summary>
/// Generic Implementation of the A* algorithm.
/// </summary>
public class AStar {
#region ProfilingCollection
@THeK3nger
THeK3nger / audio.py
Last active September 1, 2023 21:35
Python Wave Audio Loop
import os
import wave
import threading
import sys
# PyAudio Library
import pyaudio
class WavePlayerLoop(threading.Thread) :
"""
@THeK3nger
THeK3nger / bhtree_example.py
Last active May 10, 2020 15:38
Behavior Tree Example
# -*- coding: iso-8859-15 -*-
"""
Behavior Tree Example
"""
class WorldStatus(object):
def __init__(self):
self.aperta = False # Porta aperta?
self.step = 3 # Distanza dalla porta