Repository files navigation
Python Games — a collection of small console-based games developed while learning and practicing Python.
The repository contains several independent games focused on programming fundamentals, game logic, algorithms, and working with user input.
Clone the repository.
Select the required game.
Run the corresponding .py file using Python.
Guess the Number is a console-based game where the player tries to guess a randomly generated number within a specified range.
The player has a limited number of attempts to guess the hidden number.
The range and number of attempts can be configured.
Text Role-Playing Game is a console-based adventure game inspired by classic stories about warriors, castles, and dangerous adventures.
The player reads story events and makes choices that determine how the adventure continues.
Tic-Tac-Toe is a logical game for two players played on a 3×3 square grid.
One player uses crosses, while the other uses noughts.
Players take turns placing their symbols in empty cells.
The first player to get three symbols in a row horizontally, vertically, or diagonally wins.
Battleship is a two-player strategy game in which players take turns attacking coordinates on their opponent's hidden board.
The goal is to sink all of the opponent's ships before they sink yours.
Each player has a 10×10 playing field with a fleet of ships.
The fleet consists of 1 ship of four cells, 2 ships of three cells, 3 ships of two cells, and 4 single-cell ships.
Ships can only be placed horizontally or vertically.
Ships cannot be placed next to each other.
Minesweeper is a console-based puzzle game where the player must open cells without hitting hidden mines.
In this implementation, the player receives points for each successfully opened cell.
The playing field is divided into cells, some of which contain hidden mines.
The player opens cells while trying to avoid mines.
Opening a mined cell ends the game.
The goal is to open all cells that do not contain mines.
You can’t perform that action at this time.