Skip to content

vertinski/snake_game

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 

Snake Game

  

This is a very first snake game produced using the OpenAI Codex engine. The code was produced by prompting the Codex engine with a custom and very compact text promt. Codex is an AI system that translates natural language to code. In this case it's Python code. The prompt is a carefully crafted text snippet, which is fed to the Codex engine for completion. Completed text is a program code or script, etc.

The prompt

#Define a python function which is a classic snake game.
#Display playing field using pygame library.

import pygame

Prompt parameters

Temperature: 0.7
Top P: 1
Frequency penalty: 0
Presence penalty: 0
Best of: 1

(Response length can be adjusted as needed)

Gameplay: Use arrow buttons to navigate the snake. Eat the food that appears at random locations.

About

This is a very first Snake Game code produced using OpenAI Codex model

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages