Skip to content
This repository has been archived by the owner on Feb 5, 2024. It is now read-only.

Commit

Permalink
Clean up the makefile.
Browse files Browse the repository at this point in the history
  • Loading branch information
xiejw committed Jan 23, 2020
1 parent e9ebe9f commit a2abd69
Showing 1 changed file with 18 additions and 7 deletions.
25 changes: 18 additions & 7 deletions connect_4/Makefile
@@ -1,8 +1,14 @@
default: run

################################################################################
# Plays the game.
################################################################################
run:
TF_CPP_MIN_LOG_LEVEL=3 PYTHONPATH=. python3 cmd/play_with_human.py

################################################################################
# Self plays and training.
################################################################################
train:
PYTHONPATH=. python3 cmd/train.py

Expand All @@ -12,12 +18,6 @@ launch_self_plays:
self_plays:
PYTHONPATH=. python3 cmd/self_plays.py

view_db:
. data/sql/view_table.sh

db:
. data/sql/connect_table.sh

bootstrap: clean
mkdir .build
PYTHONPATH=. python3 cmd/bootstrap.py
Expand All @@ -26,8 +26,9 @@ bootstrap: clean
clean:
rm -rf .build

################################################################################
# Docker related
#
################################################################################
build_docker:
docker build -t xiejw/connect_4 \
--build-arg WEIGHT_FILE=golden_weights/2020-01-22.h5 \
Expand All @@ -36,3 +37,13 @@ build_docker:

run_docker:
docker run --rm -ti xiejw/connect_4

################################################################################
# Database related
################################################################################
view_db:
. data/sql/view_table.sh

db:
. data/sql/connect_table.sh

0 comments on commit a2abd69

Please sign in to comment.