Skip to content
프로젝트

소개

minimal carball on linux. fun for humans and ai!

AI 및 머신러닝

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
0
in 15 days
0
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

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

관련 프로젝트 살펴보기

불러오는 중…