Skip to main content

Python Pyscreeps-Arena

V0.7.0: Support for season4. Update Details

Welcome to PyScreeps-Arena

    This project is for players who want to play Screeps: Arena with python. The project provides a 'standard library' (std.py) to act as a glue layer between js and python. Players write their own logic code in the main.py loop, and run build.py to generate main.mjs

    Please note that the codes for `Screeps:Arena` and 'Screeps:World' are not compatible.

    (If you want to play Screeps:World, i recommend you to try the Github project: 'screeps-starter-python')

1. Quick Prepare Environment

    This project need python == 3.12 (for the limit of transcrypt). Please make sure you have download&install from python.org

    Use python pip to install this package:     pip install pyscreeps-arena

    Use cmd command to create a new game project:     pyscreeps-arena 'Your Project Path'     (or the short alias: psanew 'Your Project Path')

    Use GUI cmd command to create a new game project:     psaui

    Use GUI cmd command to view map and mark element as code(map at /docs/maps):     psaui -m

    Use GUI cmd command to replay a local simulation battle:     psaplay <replay_output_dir>

    Use cmd command to start the MCP server (for AI-assisted development):     psamcp

    Use your editor to open the project(recommand PyCharm).

2. Tutorial

    中文教程见仓库 tutorial - cn 目录。

3. Transcrypt: Different between python and js

  • in python:if []: is False, but get true in js.
  • in python:_list[-1] is ok, but not work in js.
  • in python: use dict.py_get() instead of dict.get()
  • in python: use container.py_clear() instead of container.clear()
  • operator reaload do not work in js. Mean in python[1] * 5 do not work in js.
  • kwargs do not work in js. Mean in pythonfunc(1, b = 5) do not work in js.

4. Document

    See *.md under the docs folder of your game project (tutorials, system guides, season notes and arena maps).

Last

    Goodluck & Have fun. :)

Metadata

Release files for pyscreeps-arena 0.7.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pyscreeps-arena 0.7.2.1
File Size Uploaded
pyscreeps_arena-0.7.2.1.tar.gz 1.2 MB Details

Built distribution (wheel)

Table of built distributions (wheels) for pyscreeps-arena 0.7.2.1
File Interpreter ABI Platform
pyscreeps_arena-0.7.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 2.5 MB

Release files / pyscreeps_arena-0.7.2.1.tar.gz

Download URL pyscreeps_arena-0.7.2.1.tar.gz
Size 1.2 MB
Tags Source
SHA-256 checksum
How to use checksums
76b44f763cd03073df9cd4dc3e2cf6493ab13e7c9915fc9dbd1963c6da0ab67e
BLAKE2b-256 checksum
How to use checksums
9540f860e830d43f69ca0b9151e6811b9b97107e06555f0c39533c7fb06b9145
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release files / pyscreeps_arena-0.7.2.1-py3-none-any.whl

Download URL pyscreeps_arena-0.7.2.1-py3-none-any.whl
Size 1.3 MB
Tags Python 3
SHA-256 checksum
How to use checksums
3363421a8825efa5645e38e1992d3fcd97fe2b13cb2e8acd12d25cf29e3e966e
BLAKE2b-256 checksum
How to use checksums
78b5575ea7427d097f7d86dfba0d2c91f669c72fa0af82fea8de61668b483863
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.12.10

Release history Release notifications | RSS feed

This release

0.7.2.1 This release

2 release files

0.7.1

1 release file

0.7.0

2 release files

0.6.4

2 release files

0.6.3

2 release files

0.6.2

2 release files

0.6.1

2 release files

0.6.0

2 release files

0.5.3

2 release files

0.4.1

2 release files

0.4.0

2 release files

0.3.6

2 release files

0.3.5

2 release files

0.3.2

2 release files

0.3.1

2 release files

0.3.0

2 release files

0.2.2

2 release files

0.2.1

2 release files

0.1.21

2 release files

0.1.20

2 release files

0.1.11

2 release files

0.1.9

2 release files

0.1.8

2 release files

0.1.7

2 release files

0.1.6

2 release files

0.1.5

2 release files

0.1.4

2 release files

0.1.3

2 release files

0.1.2

2 release files

0.1.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page