diff --git a/.github/workflows/release_cli.yml b/.github/workflows/release_cli.yml index d338807..efb5bd6 100644 --- a/.github/workflows/release_cli.yml +++ b/.github/workflows/release_cli.yml @@ -16,15 +16,13 @@ jobs: shell: bash run: | cd competitions/uttt - # Rename the agent for the zip file - mv example_agent uttt_example_agent - zip -r uttt_example_agent.zip uttt_example_agent - mv uttt_example_agent.zip ../../ + sh ./build_getting_started_zip.sh + mv uttt_getting_started.zip ../../ - name: Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: - files: uttt_example_agent.zip + files: uttt_getting_started.zip build-release-cli: name: build-release-cli runs-on: ${{ matrix.os }} diff --git a/competitions/uttt/.gitignore b/competitions/uttt/.gitignore new file mode 100644 index 0000000..0d8a729 --- /dev/null +++ b/competitions/uttt/.gitignore @@ -0,0 +1 @@ +uttt_getting_started.zip diff --git a/competitions/uttt/build_getting_started_zip.sh b/competitions/uttt/build_getting_started_zip.sh new file mode 100755 index 0000000..b69c7ce --- /dev/null +++ b/competitions/uttt/build_getting_started_zip.sh @@ -0,0 +1,7 @@ +#!/bin/bash + +set -e +cd "$(dirname "$0")" +rm uttt_getting_started.zip || echo 'no previous zip file' + +zip -r uttt_getting_started.zip uttt_getting_started diff --git a/competitions/uttt/example_agent.zip b/competitions/uttt/example_agent.zip deleted file mode 100644 index ff9ddd8..0000000 Binary files a/competitions/uttt/example_agent.zip and /dev/null differ diff --git a/competitions/uttt/uttt_getting_started/.gitignore b/competitions/uttt/uttt_getting_started/.gitignore new file mode 100644 index 0000000..ba077a4 --- /dev/null +++ b/competitions/uttt/uttt_getting_started/.gitignore @@ -0,0 +1 @@ +bin diff --git a/competitions/uttt/example_agent/doxa.yaml b/competitions/uttt/uttt_getting_started/agent/doxa.yaml similarity index 100% rename from competitions/uttt/example_agent/doxa.yaml rename to competitions/uttt/uttt_getting_started/agent/doxa.yaml diff --git a/competitions/uttt/example_agent/main.py b/competitions/uttt/uttt_getting_started/agent/main.py similarity index 98% rename from competitions/uttt/example_agent/main.py rename to competitions/uttt/uttt_getting_started/agent/main.py index f275165..0bfa542 100644 --- a/competitions/uttt/example_agent/main.py +++ b/competitions/uttt/uttt_getting_started/agent/main.py @@ -1,7 +1,7 @@ # An example agent for UTTT competition. # It's designed to keep playing valid moves without any thought to strategy beyond that -import sys, random +import random # Runs at startup to determine which player the current user is def get_player(): diff --git a/competitions/uttt/example_agent/doxa_cli.py b/competitions/uttt/uttt_getting_started/doxa_cli.py similarity index 100% rename from competitions/uttt/example_agent/doxa_cli.py rename to competitions/uttt/uttt_getting_started/doxa_cli.py