Giter Site home page Giter Site logo

battleship's Introduction

Battleship!

IG3 POO project : Make a battleship

Architecture

Test IA : package fr/battleship/TestIA.java

Main package : src/sanchez/alexis

  • Battleship.java
  • Ship.java
  • /coordinate : here are all the files concerning the coordinates

    • Coordinate.java
    • CoordinateCheck.java
  • /player : here all the files concerning the players

    • Player.java

    • IPlayer.java

    • /ia : here all the files concerning the AI

      • AI.java
      • AIInterface.java
      • AILevel0.java
      • AILevel1.java
      • AILevel2.java

Compilation & Execution

At the root of the project you can find two files:

  • WINDOWS_Compilation_java.bat
  • LINUX_Compilation_java.sh

Keep sure to let the scripts at the root of the project !

You also need to verify that Java is installed and configured (PATH variable etc...)

Windows : Use the script named "WINDOWS_Compilation_java.bat"

First to launch the script :

  1. Use a Terminal and move to the project with the "cd" command
  2. Then launch it with the name of the script : WINDOWS_Compilation_java.bat

or

  1. Double click on the script :)
Linux :
  1. Open a terminal and move to the project with the "cd" command
  2. Use command chmod to get the right of execution : chmod 744 LINUX_Compilation_Java.sh
  3. Launch the script with : ./LINUX_Compilation_Java.sh

Then :

Once launched for both the script will create a "build" folder at the root with all the .class files.

Then the script will ask you if you want to launch the Battleship main program or if you want to launch the AI test.

You can also run the programs with those commands (you need to be in the build folder once you have launched the script above):

  1. Main program Battleship : java sanchez/alexis/Battleship
  2. TestIA : java fr/battleship/TestIA

Once you have launched the AI test you will find in the build folder a csv file where the results can be found.

FINISH !

battleship's People

Contributors

alexis559 avatar

Watchers

James Cloos 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.