Skip to content

4 Games made in Python that can be played in the terminal: Blackjack, Bulls and Cows (word guessing game), missionX (math game), and the classic Snake game

Notifications You must be signed in to change notification settings

Apollo99-Games/Terminal-Python-Games

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Terminal-Python-Games

4 Games made in Python that can be played in the terminal: Blackjack, Bulls and Cows (word guessing game), missionX (math game), and the classic Snake game.

The instructions to play the games are printed when you run the code. The code can be run from the "main.py" file.

You can run the games on Replit.

Note the curses library appears to detect keys differently on different compilers. You can switch between these two options to see what works for you:

# location is in snakes -> snakes_utils -> after line 6

# works on VS code
RIGHT_KEY = 454
LEFT_KEY = 452
DOWN_KEY = 456
UP_KEY = 450

# works on replit
RIGHT_KEY = curses.KEY_RIGHT
LEFT_KEY = curses.KEY_LEFT
DOWN_KEY = curses.KEY_DOWN
UP_KEY = curses.KEY_UP

Some screenshots of the program:

Snake Game

snake game

Blackjack

blackjack

About

4 Games made in Python that can be played in the terminal: Blackjack, Bulls and Cows (word guessing game), missionX (math game), and the classic Snake game

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages