Skip to main content

pysc1 : The StarCraft I Learning Environment

This package is currently in enthusiastic development. Just wait a sec. Meanwhile, refer to https://github.com/bboyseiok/pysc1-gym for now.

This project is also registered on pypi : https://pypi.org/project/pysc1/ I’ll be waiting for the people who share the same interest and wants to build on the project!

Thank you.

Pysc1-gym

Installing and managing Starcraft I learning environment can be tedious and full of errors. Here, I present to you packaged way of running a nice Starcraft I gym simulation in your laptop or some clusters.

I was using Windows 10 while making this work, so the instructions are made in reference to the Windows system.

“OpenAI Gym” like code for Starcraft I

After the Environment is set, you can access the features of Starcraft I just like in OpenAI Gym:

env = sc.SingleBattleEnv(args.ip, args.port)
env.seed(777)
agent = RandomAgent(env.action_space)

episodes = 0
while episodes < 100:
    obs = env._reset()
    done = False
    while not done:
        action = agent.act()
        obs, reward, done, info = env._step(action)
    episodes += 1

env.close()

Release files for pysc1 0.0.4

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

Source distribution (sdist)

Source distribution for pysc1 0.0.4
File Size Uploaded
pysc1-0.0.4.tar.gz 2.9 kB Details

Release files / pysc1-0.0.4.tar.gz

Download URL pysc1-0.0.4.tar.gz
Size 2.9 kB
Tags Source
SHA-256 checksum
How to use checksums
d298edc600d8749be78f4879b8c905db16b518668875bc2f9eeebd5f7aec3548
BLAKE2b-256 checksum
How to use checksums
da5e567aeb04b24ce5337e280f61778bc860527506438cd7e4fa877a4c45983a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

This release

0.0.4 This release

1 release file

0.0.3

1 release file

0.0.2

1 release file

0.0.1

1 release file

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