Git Product home page Git Product logo

battle_ship_game's Introduction

Introduction

  • This Game is a Computer Architure Lab Assignment
  • By doing this Assignment, we will cover these topics in MIPS: Arithmetic and Data Transfer Instructions, Conditional Branch, Unconditional Jump Instructions, and the Design of Procedures.

Game Rules:

You can see the more specific rules in Submission_Report.pdf file

Setting Stage:

  • Players can input whatever ship of the size 2, 3 or 4 as they want, except that they can only put that ship onto their board if it is available.
  • Errors will be displayed as player input the wrong coordinates for their ship, wrong size, out of bounds, no ship available, ...

Hitting Stage:

  • Player takes the turn to perform a hit on other player's board (the hit will be saved on player's view board)
  • The Game will announce if it is a valid Hit: if invalid, the game will ask the player to input the hit again; otherwise, it will tell if it is a Hit or a Miss.
  • A player will be announced as a Winner whenever he/she hits all ships of other player.

How to run This Game:

  • This game is coded using MIPS, a RISC Assembly Language. So if you want to run the code, you need to install Mars45.jar, which is a lightweight interactive development environment (IDE) for programming in MIPS Assembly Language (You can check this link: https://courses.missouristate.edu/kenvollmar/mars/)
  • When open the code file (.asm) in Mars45.jar, just only click Run then you can interact with the game via the Terminal.

battle_ship_game's People

Contributors

pdz1804 avatar

Watchers

 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.