Skip to content

Code repository for "Intro to Pygame" and "Pygame with AI" blog posts.

License

Notifications You must be signed in to change notification settings

de-fellows/Intro-to-Pygame-and-AI

Repository files navigation

Intro-to-Pygame-and-AI

Code repository for "Intro to Pygame" and "Pygame with AI" blog posts.

Christina Kampel
Digital Engineering Fellowship 2023
University of Calgary

Read the Blog Posts

Video Game Playthroughs

See what the code does, without the need for installing libraries (may require downloading the mp4 files).

Check out the Code

  • simple_pygame.py: Companion code for Intro to Pygame - A simple pygame-based video game.
  • ai_game.py: Companion code for Pygame with AI - A pygame-based video game with Natural Language Processing (NLP) models that allow the player to talk to non-player characters.
  • chat_models.py: Companion code for ai_game.py. Contains the machine learning models used in the game.

Installation Requirements

The python files above require the following to run:

File(s) Installation Requirements
simple_pygame.py - Python: version 3.9.7 or above
- Pygame: see the Pygame Getting Started wiki
ai_game.py
chat_models.py
It is recommended to set up a virtual environment for the following installations:
see Installing packages using pip and virtual environments.

To ensure all libraries are installed correctly, see the HuggingFace Quicktour.

- Python: version 3.9.13 or above
- Pygame: see the Pygame Getting Started wiki
- Pytorch version 2.0.1 with computing platform CUDA 11.8: see Pytorch website
- Requests: see Installing Packages
- HuggingFace Transformers: see Transformers installation

Contact Me!

Email: [email protected]
GitHub: Christina-Kampel

About

Code repository for "Intro to Pygame" and "Pygame with AI" blog posts.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages