Skip to content
This repository has been archived by the owner on Nov 27, 2023. It is now read-only.

Commit

Permalink
update getting started
Browse files Browse the repository at this point in the history
  • Loading branch information
louisdewar committed Dec 19, 2021
1 parent 18ca670 commit 539ca3f
Show file tree
Hide file tree
Showing 8 changed files with 13 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release_cli.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand Down
1 change: 1 addition & 0 deletions competitions/uttt/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
uttt_getting_started.zip
7 changes: 7 additions & 0 deletions competitions/uttt/build_getting_started_zip.sh
Original file line number Diff line number Diff line change
@@ -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
Binary file removed competitions/uttt/example_agent.zip
Binary file not shown.
1 change: 1 addition & 0 deletions competitions/uttt/uttt_getting_started/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
bin
Original file line number Diff line number Diff line change
@@ -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():
Expand Down

0 comments on commit 539ca3f

Please sign in to comment.