Skip to content

Hugo4212/battleship

Repository files navigation

#Battleship#

Online Battleship video game created for the baccalauréat in ISN option.

##Requirements##

This Game require :

  • Python 2.7 with the python library.
  • PHP 5.2+ on your server.

##Setup##

  • Put the file battleship.php in a folder called battleship in your server.
  • You must change url = "http://www.mysite/battleship/battleship.php" in def dialogueServeur at the top of the script, with your server URL.
  • Download all the .gif pictures. Create a folder in your computer and put these pictures in it.
  • Download battleship.py and put it il the same folder.
  • Open your python interpreter and run battleship.py.
    • If you don't have a python interpreter, you can easily donwload one. I advice to use Spyder beaucause it is easy to use. Be sure to download an interpreter with python 2.7.

##Game##

  • Once you have lunched the game, you will have join a room. You can either create join one. Once the 2 players have joined the game, you can start.
  • Your ships are now ready to be placed. To do it, you have to click on the ship you want to place in the left grid. While holding it, you have to drag it wherever you want on this grid.
    • You can put the ships in vertical position by right clicking on them while holding them.
  • When you have placed all of your ships, the game will ask you if you are ready. Clic on Pare in the top left corner to start the game.
  • Now you have to clic on the right grid to fire your artillery ! One blue case is a fail, a yellow one is a hit and a red case is displayed when you have destroyed a ship.

You are now ready to play ! Enjoy !

This game was created for fun. There are still some bugs in it and the game may crash for no reason. This problem should be fixed soon.

##License##

Battleship is under MIT License

Copyright (c) 2016 - Hugo Malgrange & Marine Vaillant

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.

About

Online Battkeship video game created for the baccalauréat in ISN option.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published