Skip to content
Projets

À propos

minimal carball on linux. fun for humans and ai!

IA et apprentissage automatique

Comment ces chiffres sont mesurés

Progression mesurée des étoiles

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
Historique en cours

Variations nettes sur des périodes qui se chevauchent, pas des totaux quotidiens. Les mesures absentes restent vides. Les étoiles indiquent l’intérêt, pas la qualité.

README.md

Original

https://github.com/user-attachments/assets/e8a15f8f-6383-4ccb-a74a-a1911f3507eb

Hacker League

Install

Currently only debian and arch based distros with x86_64. On other platforms you have to build it from source. Please help me build it on other platforms. Make sure vulkan drivers are installed on your machine.

curl -sL https://raw.githubusercontent.com/moritztng/hacker-league/main/install.sh | BINARIES="game" bash
cd hacker-league

Play

Use a gamepad for maximum fun

Singleplayer

./hacker-league

Multiplayer

Choose server from public server list

./hacker-league servers

Or connect to server with server-ip and server-port

./hacker-league <server-ip> <server-port>

Server

Install

curl -sL https://raw.githubusercontent.com/moritztng/hacker-league/main/install.sh | BINARIES="server" bash

Run

Specify public-ip and public-port if the server should be added to the public server list

./server <local-port> [<public-ip>] [<public-port>]

Python Reinforcement Learning Environment

Install

Currently only debian and arch based distros with x86_64. Make sure vulkan drivers are installed on your machine.

Debian Dependencies

sudo apt-get install libglfw3 libcurl4-openssl-dev

Arch Dependencies

sudo pacman -S glfw curl

Python Package

pip install git+https://github.com/moritztng/hacker-league.git

Train

See train_example.py

best_params = evolution_strategies(model.get_params(), fitness)
model.set_params(best_params)
def policy(observation):
    return model.forward(observation)
hacker_league.play(policy) # opens the game and shows the agent playing

Build from source

Install dependencies

Debian

sudo apt update
sudo apt install libvulkan-dev vulkan-validationlayers-dev spirv-tools libglfw3-dev libglm-dev vim-common xxd g++ make libcurl4-openssl-dev git

Arch

sudo pacman -Syu vulkan-headers vulkan-validation-layers spirv-tools glfw glm vim xxd gcc make curl git

Build

git clone https://github.com/moritztng/hacker-league.git
cd hacker-league
curl -L -o ./shaders/glslc https://github.com/moritztng/hacker-league/releases/download/glslc/glslc
chmod +x ./shaders/glslc
make debug

Community

Explorer des projets similaires

Chargement…