From 539ca3fc93915d96b6fb2c590132d7de7a5c74ac Mon Sep 17 00:00:00 2001 From: Louis de Wardt Date: Sun, 19 Dec 2021 13:00:37 +0000 Subject: [PATCH] update getting started --- .github/workflows/release_cli.yml | 8 +++----- competitions/uttt/.gitignore | 1 + competitions/uttt/build_getting_started_zip.sh | 7 +++++++ competitions/uttt/example_agent.zip | Bin 3059 -> 0 bytes .../uttt/uttt_getting_started/.gitignore | 1 + .../agent}/doxa.yaml | 0 .../agent}/main.py | 2 +- .../doxa_cli.py | 0 8 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 competitions/uttt/.gitignore create mode 100755 competitions/uttt/build_getting_started_zip.sh delete mode 100644 competitions/uttt/example_agent.zip create mode 100644 competitions/uttt/uttt_getting_started/.gitignore rename competitions/uttt/{example_agent => uttt_getting_started/agent}/doxa.yaml (100%) rename competitions/uttt/{example_agent => uttt_getting_started/agent}/main.py (98%) rename competitions/uttt/{example_agent => uttt_getting_started}/doxa_cli.py (100%) 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 ff9ddd88e45a45edb1be9940609165d794693d3b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3059 zcmaKuXH?Ty7>6T4WC$V#0AU3P(|{uiBy5zS$dD0+YzQ0K zLx!?f0SO=*2MUCt1!;rrX?tqh|Nq>3?w9+#@4X-H@40FOq-6vgeQCGjO}{Vxm{Reo3iNZqcrsEu@Co$7xO)1j3V0x0 zJz-vfj7L>Ds5R&TPpI8fc=V>%j{^WgrvL!(zgD$#aCfEd`(F1V^$;dM9)w_SgjrN# zZQeKUlMCy~7sQq;1JBc1a?!_n1_$s<#cMwoeY0X9gouw^H>S*~iRd@E=QLXgo#$Wu z+P`+PnT$&tG;rSV?^P@g91uuQi!(}bm9gHh$-9{1E5qiJ-pj}9h_WjjfzU`i@Jy1C zwLgeaORkC)IMe%4JkdKuMRAu_q90(MPglA)9L|+%Mz;-Lq`W!omj1~Vrr+LarFn2j z%MW`y>Q4Jb62x^@2zx#|JWFCe$iFbal{Gnv`SFR$CkyOgHHN6}U9uj3cfXBRHOIW= z`wg>|vEp0_?wFb<^MMqne1^eL3G}6a60>v)qVI9M8|nF^7HHH-L1%(2Zz@hizF4H; zD}Ksu;bb;H&6XAX{MsY9gvH7Yv;AeL1A0;>!H_S;xs9WPvCc&y=G!HF;?%v*8rUV8 zo*06l?Z~0~T`)-_|#us(%L^K!2N%;X_AL zur8cE?A4uYK$h#>e}9-yaJrzwOcpO690(H2X><;WbxLD@?C_~?Ph66@UeGE5vtW6% zOPRC1sAZnn*JX^>zEfYwr7d`Bo)4&_6A{ZA&U!v?=~GXQX+_fWzTOEXye^PWt~8i& z2VSrkpW<;~>T{aFrM^;S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F&YT)znt^TANI)#Sce}i|7oDde>cz{?DH??kN){P^B9$u6J+=U^KUjvg&*1I zzrz1ZGye{6{#W>)(n-Z1N$3CIe|&}hjz6UP=Y9P7CjD3E$EjPWhEDy_)bsm%zxCe$ DepfHy 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