Skip to content

guilevi/yugioh-game

 
 

Repository files navigation

Install dependencies

Lua is needed for ygopro-core. On Ubuntu: apt-get install lua5.2-dev

Install Python dependencies: pip3 install -r requirements.txt

Building

ygopro-core and ygopro-scripts must be placed one level up from here.

git clone https://github.com/Fluorohydride/ygopro-core
git clone https://github.com/Fluorohydride/ygopro-scripts
cd ygopro-core
patch -p0 < ../yugioh-game/etc/ygopro-core.patch
g++ -shared -fPIC -o ../yugioh-game/libygo.so *.cpp -I/usr/include/lua5.2 -llua5.2 -std=c++11
cd ../yugioh-game
python3 duel_build.py
ln -s ../ygopro-scripts script

Running

Put a deck in deck.ydk. The file format is just card codes separated by newlines.

python3 server.py

The server will start on port 4000.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 99.9%
  • Shell 0.1%