Skip to content

roman-k3i/sea_battle

Repository files navigation

Brief overview


!NOTE! -- Do not change the location of files, all files must be in the same directory.
!NOTE! -- Before install the Python and etc, don't forget to install and unarchive the game's archive 😊
!NOTE! -- The Colorama module is required for the game, it needs to change color in a terminal.

About

Hi there ✌️
This is small console game, which is called sea battle,
written on the programming language Python.
This is my first epxperience of writing game and
program something bigger than usual not big scripts
The game represents sea battle, when you played it on
your paper with your firends or in app on your smartphones.
In this brief guide you will see how to launch the game on
the different OS. So, hope you will enjoy a little with that, and catch
some flashbacks from the past 😉

Download the game

It must be easy for you do download the game. In the right panel from the main page of this repository
there is the tab "Releases", choose the name of release, then under Assest choose archive
which is the most suitable for you OS, click on that and it will download an archive. For the windows OS the
best choice will ZIP archive, for other ones it will be more suitable to choose TAR.GZ archive.
After you downloaded it successfully, unarchive it and follow the next instructions which suitable for your OS
about how to install the Python and launch the game.

Launch on Windows

Follow the link, download the latest version of the Python for Windows.
Search cmd in your main search and then run the commands which are below.

python -m pip install --upgrade pip
pip install colorama

It will upgrade packet manager if need and install dependency for the game.
Then you could just open game.py and enjoy the game.
You are also able to launch the game from the command line.
Launch command line in Windows, then indicate the command below.

python "path/to/game.py"

Launch on Linux

Debian

Open the terminal and run the commands below.

sudo apt-get -y update && sudo apt-get -y upgrade
sudo apt-get install -y python3 python3-pip
pip install colorama

So, previous commands update your files to the latest version,
then download the Python, pip, and dependency. After that,
launch the game by using command below.

python3 "path/to/game.py"

RedHat

Open a terminal and run the commands below

sudo yum -y update && sudo yum -y install epel-release
sudo yum -y update && sudo yum -y install python3
pip3 install colorama

It will update your OS files to the latest version, then
install additional repository, python, pip, and dependency package.
So, after that launch the game by the command below.

python3 "path/to/game.py"

Launch on macOS

By default, on macOS you have two different version of the Python. The first one is
python2 and the second one is python3. You can check it by opening your terminal in macOS
and type the commands below

python -V
python3 -V

In case of not having python3, follow the link and find the newest stable python3 version for macOS,
and download it. After that you will be able to check your version by previous ones commands and this
must show you which exactly python3 version do you have on your macOS. After that, upgrade the pip,
python package manager for installing modules, and install one of the modules which the game required.
Use the commands which are below.

pip3 install -U pip3
pip3 install colorama

After you have done all those steps, in your terminal you just need type the command below,
for launching the sea battle game.

python3 /path/to/game.py

In the /path/to/game.py must be your path where the game.py file located on your macOS.
After that, you will successfully launch the game and hope you will have some fun with that 😃

About

The sea battle game, written on Python

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages