Git Product home page Git Product logo

battleship-bots's Introduction

Purdue Hackers Battleship

========== Description ==========

Welcome to Battleship!

To get started, set your API_KEY in your chosen starter code.

There are two methods for you to fill in/edit:
	placeShips(opponentID): Called everytime a new match starts. Note: Save your opponentID if you plan on using it to make moves.
		placeDestroyer(A,B): Place your Destroyer (Length 2) from point A to point B
		placeSubmarine(A,B): Place your Submarine (Length 3) from point A to point B
		placeCruiser(A,B): Place your Cruiser (Length 3) from point A to point B
		placeBattleship(A,B): Place your Battleship (Length 4) from point A to point B
		placeCarrier(A,B): Place your Carrier (Length 5) from point A to point B
	makeMove(): Called everytime it is your turn to make a move.
		placeMove(A): Places your move at point A, and returns a string "Hit", "Sunk", or "Miss"

============ Usage ============

To run your program:
	Python: execute `python Battleship.py`
	Java: execute `javac Battleship.java` and `java Battleship`

To kill your program: Type control-c

If your forget to kill your program: Use the "Kill" button on the game viewer

============ Credits ============

©2016 Purdue Hackers and Harris Christiansen - All Rights Reserved

The Battleship Client, Server, Admin Controls, and Game Viewer were developed by: Harris Christiansen ([email protected])

Design by: Ben Alderfer

API by: Nicky Semenza

Client ported to Java by: Guocheng Wei

battleship-bots's People

Contributors

jarett-lee avatar maxattax97 avatar arunarjunakani avatar

Watchers

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