Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,7 @@ docs/_build/
.vscode/

# Pyenv
.python-version
.python-version

# custom venv names
venv*/
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "_socha"
version = "4.3.9"
version = "5.0.0"
edition = "2021"

[lib]
Expand All @@ -12,6 +12,7 @@ pyo3 = { version = "0.21.2" }
pyo3-log = "0.10.0"
log = "0.4.20"
itertools = "0.13.0"
rand = "0.10.2"

[features]
extension-module = ["pyo3/extension-module"]
10 changes: 7 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<a target="_blank" rel="noopener noreferrer" href="https://www.software-challenge.de"><p align="center"><img width="128" src="https://software-challenge.de/site/themes/freebird/img/logo.png" alt="Software-Challenge Logo"></p></a>

# Python-Client für die Software-Challenge Germany 2025
# Python-Client für die Software-Challenge Germany 2027

[![Read the Docs](https://img.shields.io/readthedocs/socha-python-client?label=Docs)](https://socha-python-client.readthedocs.io/de/latest/)
[![PyPI](https://img.shields.io/pypi/v/socha?label=PyPi)](https://pypi.org/project/socha/)
Expand All @@ -12,11 +12,11 @@

Dieses Repository enthält das Python-Paket für die [Software-Challenge Germany](https://www.software-challenge.de), einem Programmierwettbewerb für Schülerinnen und Schüler. Dabei muss eine künstliche Intelligenz entwickelt werden, die in einem jährlich wechselnden Spiel gegen andere Gegner antritt.

> In diesem Jahr ist es das Spiel **[Piranhas](https://docs.software-challenge.de/spiele/26_piranhas/)**.
> In diesem Jahr ist es das Spiel **[Blokus](https://docs.software-challenge.de/spiele/27_blokus/regeln)**.

## Inhaltsverzeichnis

- [Python-Client für die Software-Challenge Germany 2025](#python-client-für-die-software-challenge-germany-2025)
- [Python-Client für die Software-Challenge Germany 2027](#python-client-für-die-software-challenge-germany-2027)
- [Inhaltsverzeichnis](#inhaltsverzeichnis)
- [Installation](#installation)
- [Global](#global)
Expand Down Expand Up @@ -118,6 +118,10 @@ if __name__ == "__main__":
Starter(Logik())
```

**ACHTUNG** Die aktuelle ReadtheDocs Dokumentation ist nicht aktuell und leider Fehlerhaft. Die wichtigen Startschritte findetet ihr wie gehabt in dieser ReadMe.

Eine Liste an Klassen und Methoden findet sich hier [`_socha.pyi`](https://github.com/software-challenge/player_python/blob/master/python/socha/_socha.pyi).

> Ein komplettes Beispiel ist in dieser [`logic.py`](https://github.com/maxblan/socha-python-client/blob/master/logic.py) zu finden.

### Startargumente
Expand Down
3 changes: 2 additions & 1 deletion docs/conf.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import sys

sys.path.insert(0, os.path.abspath('../'))

# -- Project information -----------------------------------------------------
Expand Down Expand Up @@ -34,4 +35,4 @@

todo_include_todos = True

autoclass_content = 'both'
autoclass_content = 'both'
15 changes: 10 additions & 5 deletions logic.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,20 @@
import time
from typing import Optional, Tuple
from socha import (
Move,
GameState,
Color,
Piece,
PieceShape,
Rotation,
Coordinate,
Vector,
GameRuleLogic,
Board,
Direction,
FieldType,
TeamEnum,
Board,
Move,
GameState,
RulesEngine,
Field,
FieldContent,
)
from socha.api.networking.game_client import IClientHandler
from socha.starter import Starter
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "maturin"

[project]
name = "socha"
version = "4.3.9"
version = "5.0.0"
authors = [
{ name = "yoente", email = "stu250140@mail.uni-kiel.de" },
{ name = "maxblan", email = "stu222782@mail.uni-kiel.de" },
Expand Down
Loading
Loading