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
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.