Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New change adopt #13

Open
wants to merge 59 commits into
base: cyrus2d
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
59 commits
Select commit Hold shift + click to select a range
0fa6043
remove some formation files and unmark dnn
naderzare Jun 15, 2024
72f7ace
Create main.yml
naderzare Jun 15, 2024
212f016
Delete .github/workflows/cmake.yml
naderzare Jun 15, 2024
ddb22b1
Update main.yml
naderzare Jun 15, 2024
d8b60ae
Update main.yml
naderzare Jun 15, 2024
d64d947
Update main.yml
naderzare Jun 15, 2024
f38b497
Create main2.yml
naderzare Jun 15, 2024
2af2ebd
Update main2.yml
naderzare Jun 15, 2024
9f4c5e4
Update main2.yml
naderzare Jun 15, 2024
c034ab1
Update main2.yml
naderzare Jun 15, 2024
090206b
Update main2.yml
naderzare Jun 15, 2024
e8e319a
Update main.yml
naderzare Jun 15, 2024
b2f500b
Update main2.yml
naderzare Jun 15, 2024
2cd5330
Update main.yml
naderzare Jun 15, 2024
547b026
Update main.yml
naderzare Jun 15, 2024
abd8db6
Update main2.yml
naderzare Jun 15, 2024
4ba30fc
Update main2.yml
naderzare Jun 15, 2024
017b3dc
Update main.yml
naderzare Jun 15, 2024
59d7de4
update start and readme
naderzare Jun 15, 2024
0fbad33
update start and readme
naderzare Jun 15, 2024
c31c1af
update git ignore
naderzare Jun 15, 2024
76f4ff9
Merge branch 'cyrus2d' of github.com:Cyrus2D/FoxsyCyrus2DBase into cy…
naderzare Jun 15, 2024
340168e
read config from string or file
naderzare Jun 15, 2024
3bf40a1
removed unused formation, add cyrus form
naderzare Jun 15, 2024
57ea934
update readme
naderzare Jun 15, 2024
562b00b
add form and json.hpp and setting
naderzare Jun 16, 2024
79b11dd
update start.sh
naderzare Jun 16, 2024
effabad
Delete .github/workflows/main2.yml
naderzare Jun 16, 2024
5195c0f
Update main.yml
naderzare Jun 16, 2024
2d7ebf8
update start.sh
naderzare Jun 16, 2024
4046195
Merge branch 'cyrus2d' of github.com:Cyrus2D/FoxsyCyrus2DBase into cy…
naderzare Jun 16, 2024
99c63e9
Update main.yml
naderzare Jun 16, 2024
84aef2d
add version
naderzare Jun 16, 2024
0173ea0
Merge remote-tracking branch 'origin/cyrus2d' into cyrus2d
naderzare Jun 16, 2024
1cd7fbf
fix bug
naderzare Jun 16, 2024
171a4b5
add more formation
naderzare Jun 22, 2024
695f97a
Update main.yml
naderzare Jun 24, 2024
67b2987
Update README.md
naderzare Jun 29, 2024
4f25c96
fix std: bug
naderzare Aug 16, 2024
114f7e8
add the following parameters to setting
naderzare Aug 16, 2024
36c8df1
add loser and winner formations
naderzare Aug 16, 2024
9bf3922
add moving_save_energy
naderzare Aug 16, 2024
4b8f54c
add moving_pressing_level
naderzare Aug 16, 2024
b2580bb
add moving_use_offside_trap
naderzare Aug 16, 2024
28605ef
Merge branch 'cyrus2d' into develop
naderzare Aug 16, 2024
3b53f0f
update readme
naderzare Aug 16, 2024
31909ac
change int to double for moving_save_energy and moving_pressing_level
naderzare Aug 28, 2024
e3ed2ea
Merge pull request #1 from Cyrus2D/develop
naderzare Aug 28, 2024
a1d0c4f
encode decode json
naderzare Aug 28, 2024
cb9441e
Update README.md
naderzare Sep 4, 2024
46b1c4c
Merge pull request #2 from Cyrus2D/develop
naderzare Sep 4, 2024
9d88678
Update README.md
naderzare Sep 4, 2024
75d837d
Update README.md
naderzare Sep 4, 2024
4ff259a
chore: Update .gitignore file
sadraiiali Sep 7, 2024
a32df2b
chore: Update .gitignore file and Makefile configurations
sadraiiali Sep 7, 2024
5510651
add the only selected formations 532-442-433
sadraiiali Sep 7, 2024
b416b43
change pressing to only 0 and 1 value (eather on or off)
sadraiiali Aug 23, 2024
71df953
offside_trap fixed
sadraiiali Sep 8, 2024
9bf96fe
add aggresiveness
sadraiiali Sep 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 0 additions & 53 deletions .github/workflows/cmake.yml

This file was deleted.

76 changes: 76 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Build and Release

on:
workflow_dispatch:
# push:
# branches:
# - cyrus2d

jobs:
build:
runs-on: ubuntu-20.04

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up dependencies
run: |
sudo apt update
sudo apt install -y build-essential libboost-all-dev cmake

- name: Install librcsc
run: |
git clone https://github.com/helios-base/librcsc.git
cd librcsc
git checkout 19175f339dcb5c3f61b56a8c1bff5345109f22ef
mkdir build
cd build
cmake ..
make
sudo make install

- name: Build project
run: |
mkdir build
cd build
cmake ..
make
cd bin
mkdir lib
cp ~/local/lib/libr* lib/

- name: Create zip file
run: |
cd build
mv bin cyrus
chmod 777 cyrus/* -R
zip -r cyrus.zip cyrus
mv cyrus.zip ../
- name: Get latest tag
id: get_latest_tag
uses: actions/github-script@v6
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
script: |
const latestTag = await github.rest.repos.listTags({
owner: context.repo.owner,
repo: context.repo.repo,
per_page: 1,
page: 1
});
const latestTagName = latestTag.data.length > 0 ? latestTag.data[0].name : "0";
const newTag = (parseInt(latestTagName, 10) + 1).toString();
core.setOutput('new_tag', newTag);
# ------------------------------------------- Release
- name: Create Release
id: create_release
uses: ncipollo/release-action@v1
with:
artifacts: "${{ github.workspace }}/cyrus.zip"
token: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ steps.get_latest_tag.outputs.new_tag }}
release_name: ${{ steps.get_latest_tag.outputs.new_tag }}
release_body: "FOXSY CYRUS BASE"
draft: false
prerelease: false
35 changes: 34 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,37 @@ sample_player
sample_trainer
start.sh
train.sh

build/
cmake-build-debug
.idea/*
*.o
*.Po
compile
config.guess
config.sub
depcomp
install-sh
missing
src/Makefile
src/Makefile.in
autom4te.cache/
config.log
config.status
.deps/
.dirstamp
vscode/
stamp-h1
COPYING
configure
aclocal.m4
src/player/Makefile.in
src/player/Makefile
src/trainer/Makefile
src/trainer/Makefile.in
src/coach/Makefile
src/coach/Makefile.in
Makefile.in
Makefile
INSTALL
config.h
config.h.in
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ endif()
# compliler options
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_STANDARD_REQUIRED True)
set(CMAKE_CXX_EXTENSIONS OFF)

if(NOT CMAKE_BUILD_TYPE)
set(CMAKE_BUILD_TYPE "Release" CACHE STRING "" FORCE)
Expand Down
Loading