Giter Site home page Giter Site logo

battleship's Introduction

/////////////////////////////////////// // __ __ __ ___ __ __ // // (_ ||/ / \ | _/(_ ||||__) // // __)| |_/_/ | | __)| ||| // // // ///////////////////////////////////////

There are 3 states in the game:

  1. Ship Placement When you first start a game, you will need to place your ships. Use the joystick to move the current ship around the screen. Press the black button to rotate the ship. Press the joystick button to place the ship. If a ship cannot be placed in its current position, it will display in red.

  2. Aim Your current view of the enemy's map will be displayed. Grey blocks indicate an unknown spot, red squares indicate a hit, and white squares indicate a miss. Use the joystick to move your targeting reticle. Press the joystick button to fire. When you are done viewing the results of your shot, press the joystick button to continue.

  3. Wait Your map will be displayed. Blue blocks indicate an empty spot, red squares indicate an enemy hit, and white squares indicate an enemy miss. When the enemy fires, your map will be updated and the enemy's shot will be highlighted with a yellow reticle. When you are done viewing the results of the enemy's shot, press the joystick button to continue.

battleship's People

Contributors

thelastbanana avatar kuzi117 avatar

Watchers

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