-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Implement Connect4 game Signed-off-by: jparisu <[email protected]> * prepare tournaments Signed-off-by: jparisu <[email protected]> * Add Repeated Game Signed-off-by: jparisu <[email protected]> * Add Clock Game Signed-off-by: jparisu <[email protected]> * Create cache and prune minimax Signed-off-by: jparisu <[email protected]> * Finish Connect4 IA Signed-off-by: jparisu <[email protected]> * Fix documentation Signed-off-by: jparisu <[email protected]> * Fix tests Signed-off-by: jparisu <[email protected]> * Fix tests Signed-off-by: jparisu <[email protected]> * Add Position arguments Signed-off-by: jparisu <[email protected]> * Add tutorial Signed-off-by: jparisu <[email protected]> * Fix tutorial documentation Signed-off-by: jparisu <[email protected]> --------- Signed-off-by: jparisu <[email protected]>
- Loading branch information
Showing
59 changed files
with
2,080 additions
and
324 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
name: Build and Test Documentation | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
|
||
test-docs: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r docs/requirements.txt | ||
- name: Build documentation | ||
run: | | ||
sphinx-build -b html docs/ docs/_build/html | ||
- name: Documentation tests | ||
run: | | ||
sphinx-build -W --keep-going -b spelling docs/ docs/_build/spelling |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Test Python Package Installation | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
install: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
|
||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Extract branch name | ||
id: branch | ||
run: echo "BRANCH=${GITHUB_HEAD_REF:-${GITHUB_REF#refs/heads/}}" >> $GITHUB_ENV | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip | ||
pip install -r requirements.txt | ||
- name: Install package from current branch | ||
run: pip install --upgrade git+https://github.com/jparisu/IArena.git@${BRANCH} | ||
|
||
- name: Run tests | ||
run: pytest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
doc8==0.10.1 | ||
docutils==0.16.0 | ||
GitPython==3.1.32 | ||
setuptools==65.5.1 | ||
sphinx_rtd_theme==0.5.2 | ||
sphinx-tabs==3.2.0 | ||
sphinx==4.3.1 | ||
sphinxcontrib-imagehelper==1.1.1 | ||
sphinxcontrib.spelling==7.2.1 | ||
doc8 | ||
docutils | ||
GitPython | ||
setuptools | ||
sphinx_rtd_theme | ||
sphinx-tabs | ||
sphinx | ||
sphinxcontrib-imagehelper | ||
sphinxcontrib.spelling |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
Colab | ||
IArena | ||
IGameRules | ||
IMovement | ||
IPosition | ||
IPlayer | ||
Tic | ||
Tac | ||
Toe | ||
conda | ||
NQueens | ||
Jupyter |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
|
||
.. _glossary: | ||
|
||
######## | ||
Glossary | ||
######## | ||
|
||
.. glossary:: | ||
|
||
Arena | ||
A class that represents the game flow. Uses one GameRule and several players to play a game, returning the final score. | ||
|
||
GameRule | ||
A class that defines the rules of a game. It contains methods to help creating the game flow. | ||
|
||
Movement | ||
A class that represents a movement in a game. Along with GameRules, generates new Positions given a source one. | ||
|
||
Player | ||
A class that represents a player in a game. It contains the method to return a movement given a position. | ||
|
||
Position | ||
A class that represents a specific state of a game. Along with the GameRules, it defines the game. | ||
|
||
Score | ||
A class that represents the score of a terminated game. Each player has its own score. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.