Giter VIP home page Giter VIP logo

battle-of-ships's Introduction

Battle of ships

Battle of ships a Python terminal based game. Users can try to beat the computer by finding the computers ships before the computer founds the users.

landing

view the live project here

UX

It is a game for everyone who likes battleship.

How to play

The game is the adaptation of the classic battleship game which can be played on computer instead of on a paper with pen. The player enter their name and than the game starts with two random boards will be generated. The player's ship will be displayed with an "x" and the computer's ship with a "z". The game will run for 5 turn, and the players can take a guess where the ships are.

Features

Existing features

  • starting page

landing

  • game area

landing

  • Random Board generation

  • Ships are randomly placed, player cannot see them

  • Play against the computer

  • accept user input

  • input validation and error checking

  • warning when the same number enterted twice

Future features

  • new gameplay

  • scoreboard

Technologies

  • Heroku was used to deploy the program

  • Git was used for version control

  • Github was used to store the project

  • Pep8 was used to validate

  • Termcolor was used to install the colors

Testing

  • tested the project by running in PEP8online validator

  • tried with wrong or invalid data,

Bugs

Solved bugs

  • In the begining index error, because the range what i set for the validator was not correct

Deployment

This project was deployed on Heroku, using Code Institute mock terminal.

  • Create a new Heroku app

  • Set the buildpacks to Python and NodeJS

  • Link the heroku app to the repository

  • Click on Deploy

Credits

  • Code Institue for the deployment terminal

  • My mentor for the advices and feedbacks about the project

  • W3CSchool for learning material

  • StackOverflow the community sharing their experience and advices

battle-of-ships's People

Contributors

balazs9 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.