1. Homepage
  2. Programming
  3. CSCI2525 Assembly Language and Computer Organization - Final Project: Connect Three in Assembly

CSCI2525 Assembly Language and Computer Organization - Final Project: Connect Three in Assembly

Engage in a Conversation
UCDenverCSCI2525Assembly Language and Computer OrganizationAssembly

Final Project CourseNana.COM

Objective: Develop a the game of Connect Three in Assembly. This game will be menu- driven, the gameboard will be made of ASCII characters, and it will have options for player vs. player, player vs. computer, and computer vs. computer. CourseNana.COM

Connect Three: CourseNana.COM

Our version of the game will be played on a 4x4 gameboard. Players will take turns “dropping” a piece into a column. Each dropped piece should fall to the bottom-most vacant spot of the gameboard. When a player has three of their pieces in a row(either horizontally, vertically, or diagonally) they win that match. If the entire 4x4 board is filled without either player obtaining 3 in a row, it is considered a draw. There is ample information available online for how the game of Connect Four is played. The basic rules are the same, we are just implementing a simplified version using a smaller gameboard. CourseNana.COM

Menu: CourseNana.COM

Your program should begin with a main menu that is returned to after each match. This menu will have options for selecting player vs. player, player vs. computer, computer vs. computer, view rules, and exit. Once a selection is made and the game begins, the screen should be cleared before displaying the gameboard. Do not print the gameboard underneath the main menu. Additionally, each time a move is made the screen should be cleared and the updated gameboard redisplayed. The entire program should behave like a live-updated game, not multiple menus and gameboards sequentially printed to the console. CourseNana.COM

Sample menu- CourseNana.COM

Player vs. Player: CourseNana.COM

The first player to go should be randomly selected. The program must then prompt that player to make a selection of which column to drop their piece into. The correct cell in the matrix should then change to the color for that player(use blue for the first player, yellow for the second). Players will take turns dropping pieces, prompted by the program, until a 3- piece connection is made or the gameboard is filled. At the end of each match the game should display who won(or if it was a draw), then wait for a keypress from the user before returning back to the main menu. CourseNana.COM

Player vs. Computer: CourseNana.COM

This mode should play exactly like player vs. player, however player 2 will be replaced by a computer player. The computer does not need any sophisticated A.I., it can simply make random selections for what column to drop each piece in. The starting player will again be randomly selected, and the player and computer will alternate turns until a winner is found or the game ends in a draw. CourseNana.COM

Computer vs. Computer: CourseNana.COM

This mode will have no user input to play the game, but will instead display a game played out by two computer players. There are bonus points available if you implement a small delay between moves of the computers, so the game can appear to be ‘played’ rather than just printing a single final board to the console. CourseNana.COM

Sample game output of the gameboard- CourseNana.COM

CourseNana.COM

Specifications: CourseNana.COM

  1. Your program must meet all the requirements outlined above. CourseNana.COM

  2. The displayed gameboard should be clear and easily understood(see the example CourseNana.COM

    above). CourseNana.COM

  3. Your program must compile and run on its own. I will not be debugging programs CourseNana.COM

    that do not compile to attempt to get them to run. CourseNana.COM

  4. You must use PROTO, INVOKE, and PROC. All parameters should be passed in the CourseNana.COM

    INVOKE statement. The stack should not be used except for local variables. CourseNana.COM

  5. Do not use any . (dot) directives. This includes .if, .else, .while, .repeat, etc. CourseNana.COM

  6. No global variables. Everything should be passed with INVOKE. CourseNana.COM

  7. Procedures should cover one simple task. Avoid complicated procedures spanning CourseNana.COM

    hundreds of lines of code. CourseNana.COM

  8. Input validation is required at all stages of the program. This includes not only CourseNana.COM

    invalid input, but also if a player attempts to drop a piece in a column that is already CourseNana.COM

    full. CourseNana.COM

  9. Do not use USES. CourseNana.COM

  10. In all modes, the first player to go must be randomly selected(this includes CourseNana.COM

    computer players). CourseNana.COM

  11. Documentation is very important for this assignment. All procedures should have a CourseNana.COM

    thorough docstring detailing their inputs, outputs, and basic functionality. All code should be thoroughly commented to explain what it is achieving. CourseNana.COM

Extra Credit Opportunities: CourseNana.COM

  1. Track statistics for player 1, including wins, losses, draws, and total games played. Include a menu option to display these statistics. CourseNana.COM

  2. Addasmalldelay(1second)tocomputerselections,sotheyappearto‘think’ through their move rather than immediately update the board. CourseNana.COM

  3. Animate pieces ‘falling’ down the game board to their final location. CourseNana.COM

  4. Allow users to select what color their game pieces are(they cannot be the same). CourseNana.COM

  5. Ask if you have any other ideas that you feel might be worth extra credit.  CourseNana.COM

Get in Touch with Our Experts

WeChat WeChat
Whatsapp WhatsApp
UCDenver代写,CSCI2525代写,Assembly Language and Computer Organization代写,Assembly代写,UCDenver代编,CSCI2525代编,Assembly Language and Computer Organization代编,Assembly代编,UCDenver代考,CSCI2525代考,Assembly Language and Computer Organization代考,Assembly代考,UCDenverhelp,CSCI2525help,Assembly Language and Computer Organizationhelp,Assemblyhelp,UCDenver作业代写,CSCI2525作业代写,Assembly Language and Computer Organization作业代写,Assembly作业代写,UCDenver编程代写,CSCI2525编程代写,Assembly Language and Computer Organization编程代写,Assembly编程代写,UCDenverprogramming help,CSCI2525programming help,Assembly Language and Computer Organizationprogramming help,Assemblyprogramming help,UCDenverassignment help,CSCI2525assignment help,Assembly Language and Computer Organizationassignment help,Assemblyassignment help,UCDenversolution,CSCI2525solution,Assembly Language and Computer Organizationsolution,Assemblysolution,