代写game of Connect Three in Assembly
Final Project
Objective: Develop a the game of Connect Three in Assembly. This game will be menudriven, the gameboard will be made of ASCII characters, and it will have options for player
vs. player, player vs. computer, and computer vs. computer.
Connect Three:
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.
Menu:
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.
Sample menu-
Player vs. Player:
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.
Player vs. Computer:
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.
Computer vs. Computer:
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.
Sample game output of the gameboard-
Specifications:
1. Your program must meet all the requirements outlined above.
2. The displayed gameboard should be clear and easily understood(see the example
above).
3. Your program must compile and run on its own. I will not be debugging programs
that do not compile to attempt to get them to run.
4. You must use PROTO, INVOKE, and PROC. All parameters should be passed in the
INVOKE statement. The stack should not be used except for local variables.
5. Do not use any . (dot) directives. This includes .if, .else, .while, .repeat, etc.
6. No global variables. Everything should be passed with INVOKE.
7. Procedures should cover one simple task. Avoid complicated procedures spanning
hundreds of lines of code.
8. Input validation is required at all stages of the program. This includes not only
invalid input, but also if a player attempts to drop a piece in a column that is already
full.
9. Do not use USES.
10. In all modes, the first player to go must be randomly selected(this includes
computer players).
11.Documentation is very important for this assignment. All procedures should have a
thorough docstring detailing their inputs, outputs, and basic functionality. All code
should be thoroughly commented to explain what it is achieving.
Extra Credit Opportunities:
1. Track statistics for player 1, including wins, losses, draws, and total games played.
Include a menu option to display these statistics.
2. Add a small delay(1 second) to computer selections, so they appear to ‘think’
through their move rather than immediately update the board.
3. Animate pieces ‘falling’ down the game board to their final location.
4. Allow users to select what color their game pieces are(they cannot be the same).
5. Ask if you have any other ideas that you feel might be worth extra credit.
请加QQ:99515681 邮箱:99515681@qq.com WX:codinghelp
- Instagram引流营销软件,Ins群发工具,让你的营销事半功倍!
- WhatsApp群发云控软件,ws协议云控/ws协议号批量出售
- Instagram推广软件推荐,ins引流工具吸客攻略,ig群发软件
- XC95108-15PQ100I: Enhancing FPGA Solutions for Embedded Applications | ChipsX
- ins群发软件,ins营销软件,ins拉群软件天宇爆粉【TG:@cjhshk199937】
- Instagram批量养号工具,Ins自动登录软件,ig营销引流推荐
- CAN202代写、代做MATLAB编程设计
- 数字商务时空的秘境通道:WhatsApp代筛料子推广引领品牌新风尚
- 代写Stochastic Processes、代做Python设计编程
- Instagram群发营销利器,ins私信引流新利器,ig最强引流软件
- 世贸通美国投资移民:又一批EB5投资人在移民美国上I-829获批
- 外贸新秀的秘密武器 WhatsApp拉群工具如何让我的业务成长飞速
- 安徽谷器数据荣获“2023年度数字化服务创新引领奖”
- 从梦想到现实,我走过了一段曲折而又充满挑战的路。而在这段旅程中,WhatsApp拉群工具成了我实现生意喜悦变现的得力助手。
- CapitalXtend以卓越的监管水平为中国交易者铺平道路
- 首次出海!星期零亮相2024日本东京国际食品饮料展览会
- Instagram引流营销软件揭秘,Ins一键私信软件助你轻松爆粉!
- 2024新风口:本地生活直播用虚拟场景“卷”出新红利
- 第七届轮胎动力学协同创新联盟理事会暨新能源汽车先进底盘创新研讨会圆满闭幕!
- Instagram营销软件 - ins采集软件/ig采集助手/ins群发助手/ig营销软件
推荐
- 全力打造中国“创业之都”名片,第十届中国创业者大会将在郑州召开 北京创业科创科技中心主办的第十届中国创业 科技
- 老杨第一次再度抓握住一瓶水,他由此产生了新的憧憬 瘫痪十四年后,老杨第一次再度抓握住一瓶水,他 科技
- B站更新决策机构名单:共有 29 名掌权管理者,包括陈睿、徐逸、李旎、樊欣等人 1 月 15 日消息,据界面新闻,B站上周发布内部 科技
- 如何经营一家好企业,需要具备什么要素特点 我们大多数人刚开始创办一家企业都遇到经营 科技
- 升级的脉脉,正在以招聘业务铺开商业化版图 长久以来,求职信息流不对称、单向的信息传递 科技
- 智慧驱动 共创未来| 东芝硬盘创新数据存储技术 为期三天的第五届中国(昆明)南亚社会公共安 科技
- 疫情期间 这个品牌实现了疯狂扩张 记得第一次喝瑞幸,还是2017年底去北京出差的 科技
- 苹果罕见大降价,华为的压力给到了? 1、苹果官网罕见大降价冲上热搜。原因是苹 科技
- 创意驱动增长,Adobe护城河够深吗? Adobe通过其Creative Cloud订阅捆绑包具有 科技
- 丰田章男称未来依然需要内燃机 已经启动电动机新项目 尽管电动车在全球范围内持续崛起,但丰田章男 科技