Skip to content

lh14576/bulldog

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

todos

architecture

  • core (logging, game def, hand eval and game state protocol)
  • agent (connector, playing logic)
  • engine (playing engine interface , ag, cfr, and train)

build and run

### require_warn cmake 

git clone git:https://bulldog...
cd bulldog
git submodule init
git submodule update
git pull
git submodule update --recursive

## build using cmake
mkdir build
cd build
cmake ..
make
make test

### third party (best option 1)
1. git submodule add xxxx && git submodule init && git submodule update
2. hpp whole files
3. Cmake External

##Example Configurations

./bin/train

--cfr_config=cfr_simple.json
--ag_config=ag_simple.json
--log_level=debug
--log_output=train.log
--max_iter=10000
--exp_name=norm_max
--checkpoint_interval=1000
--save_final=true
--load_checkpoint=dcfr_naive-1007
--profiler_checkpoint=2 

./bin/agent
--game=holdem.nolimit.2p.game
--engine_params=engine_offline_simple.json
--connector=0
--connector_params=localhost,52001
--log_level=trace

##Prerequisite brew install cpprestsdk & tbb add cmake options in the IDE, -DOPENSSL_ROOT_DIR=/usr/local/opt/openssl

sudo apt install libcpprest-dev
sudo apt install libtbb-dev
sudo apt-get install uuid-dev

libtorch on linux install

remove a submodule you need to:

Delete the relevant section from the .gitmodules file.
Stage the .gitmodules changes git add .gitmodules
Delete the relevant section from .git/config.
Run git rm --cached path_to_submodule (no trailing slash).
Run rm -rf .git/modules/path_to_submodule (no trailing slash).
Commit git commit -m "Removed submodule "
Delete the now untracked submodule files rm -rf path_to_submodule

linux torch cmake fix: pytorch/pytorch#40965

Releases

No releases published

Packages

No packages published

Languages

  • C++ 56.2%
  • Jupyter Notebook 38.6%
  • C 4.2%
  • Python 0.5%
  • CMake 0.3%
  • Shell 0.1%
  • Perl 0.1%