Battleship PvE

General Info

This is a school project where we were assigned to create a board game using arrays (not numpy arrays, but lists within lists). This is a simple PvE version of Battleship with randomized computer ship placment and shots.

Technologies

This was created using:

  • Python 3.9
  • Microsoft Visual Studio Code

How To Use

How to Install Required Library’s

  1. Install TQDM using terminal:
pip install tqdm
  1. Install AST using terminal:
pip install ast

How to start playing

  1. Run battleship.py
  2. Follow prompts given
  3. Enjoy!

Bug Notes

There are no known bugs at the moment, however there may be unfinished user input validation.

To-Be-Added Features

  • More appealing UI
  • AI Shooting
    • Difficulty levels
    • Significant increase in complexity, possibly will never be implemented
  • Function Documentation

Contact

Please contact me at…


profile for Eli Murphy at Stack Overflow, Q&A for professional and enthusiast programmers

Copyright

Copyright (c) 2022 Elijah A. Murphy
Distributed under the terms of the MIT License.
SPDX-License-Identifier: MIT
This code is part of the Battleship project (https://github.com/Eli-Murphy/Battleship)

GitHub

View Github