Skip to main content

A Python library for AI, easy to use, freely available for any use

Project description

Pymindcore

Pymind is a Python library for AI, supporting Numpy.

Installation

You can install Pymind using pip: pip install pymindcore.

Usage

You import it, you call the class with your neural network size, and you're away! There will be actual test files in the future, but for the meantime,

License

This project is licensed under the CCO license.

Examples

VideoGameAI.py: Currently set up to play the game Bedwars on the Minecraft server, Hypixel. It is set up to work on a 3440x1440 display, on specific game settings.

Changing resolutions

To make it work on a different resolution: 1: Go into a game, lose your bed once, die once, lose the game once. Take a screenshot of the whole screen each time you do one of those. 2: Go into the screenshot in an app like ms paint, and find a pixel that is a certain colour, when you die, lose your bed, and lose the game. (must be unique, and not trigger when either of the others happen) 3: Go into line 199 of VideoGameAI.py, and add in your coordinates and the pixel colour of that coordinate (in RGB). I'd recommend using Gimp for it. It should extend down to line 207. Only change the rewards if you know what you are doing. 4: Run it, and it should work!

Different game

To make it work on a different game: 1: Go into the game you want to train an AI for, and think what points you would punish the AI for getting wrong. eg: dying, losing, etc. 2: Play a game, and do one of each of those things yourself, screenshotting the whole screen each time you do one. 3: Go into the screenshot in an app like ms paint, and find a pixel that is a certain colour when you did each of the bad things. (must be unique, and not trigger when either of the others happen) 4: Go into line 199 of VideoGameAI.py, and add in your coordinates and the pixel colour of that coordinate (in RGB). I'd recommend using Gimp for it. It should extend down to line 207. Only change the rewards if you know what you are doing. 4.5: If you have more than 3 punishment options, then you should copy one of them, and paste it below it, copy the __Coords, __RGB, and __Punishment, and paste them below as well. 5: Figure out what keybinds your AI will need to have for the game. The ones set up for Minecraft should cover most bases, but to be safe, double check. If you want to, remove all the keybinds that your AI will not need, so it can learn easier. 6: Run it and it should work!

Discord server

Join the discord server https://discord.gg/MSMzmJ6ffj!

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pymindcore-0.2.11.tar.gz (14.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pymindcore-0.2.11-py3-none-any.whl (13.9 kB view details)

Uploaded Python 3

File details

Details for the file pymindcore-0.2.11.tar.gz.

File metadata

  • Download URL: pymindcore-0.2.11.tar.gz
  • Upload date:
  • Size: 14.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for pymindcore-0.2.11.tar.gz
Algorithm Hash digest
SHA256 9810532b81e92b901c8e88d310bf30b9a21b11b3fbcf2043703a1dd04125182c
MD5 18b3a8d0c92ad1c87cce8923d38a28d1
BLAKE2b-256 9c8c9a68abd45e6b2f29937052cba8522ef2270e9227012b232e5c85030f1f0b

See more details on using hashes here.

File details

Details for the file pymindcore-0.2.11-py3-none-any.whl.

File metadata

  • Download URL: pymindcore-0.2.11-py3-none-any.whl
  • Upload date:
  • Size: 13.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.9.13

File hashes

Hashes for pymindcore-0.2.11-py3-none-any.whl
Algorithm Hash digest
SHA256 3427488bacf5af007751cef85b3257be0c35397429fb687fedcf76fd98f32a27
MD5 308bb35af5e237185ec1e0fcdd3f74ba
BLAKE2b-256 b4ba51aed8880362350758c7575f2a661ad7a5a536798cd88db3a4f29587dc83

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page