/A-Gambling-Game

Designed an interactive game in MIPS assembly where a player can make a bet and guess the index of the largest element in an array

Primary LanguageAssembly

A-Gambling-Game

Description

In this game, an array of unique, positive, non-zero 32 bit integers will be given. The player must make a bet and guess the index of the largest element in the array. If the player guesses correctly, that element is replaced with a value of -1 and the score will increase by the amount of the bet. If the player guesses incorrectly, the score will decrease by the amount of the bet. The player can continue to make bets and guess until they are either out of points, or all elements of the array have been guessed correctly.

Content

Main files in this project:

  • Main.asm: This file contains the implementation of all the subroutines used in the lab.
  • Main(2).asm: This file is a copy of the Main.asm file, made in case if situations like unexpected errors, etc., could result.
  • Main_template.asm: This file contains the template for the test code for the project.
  • Main_test_.asm: This file contains the test code for the project.