日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

合肥生活安徽新聞合肥交通合肥房產生活服務合肥教育合肥招聘合肥旅游文化藝術合肥美食合肥地圖合肥社保合肥醫院企業服務合肥法律

CPSC 219代做、代寫Java語言設計
CPSC 219代做、代寫Java語言設計

時間:2024-10-05  來源:合肥網hfw.cc  作者:hfw.cc 我要糾錯



CPSC 219: Introduction to Computer Science II
Assignment 1: Procedural Java – Snake Game
Course: CPSC233S24
Due Date: Friday, Sept. 27, 2024
Instructor: Steve Sutcliffe <steve dot sutcliffe at ucalgary dot ca> Version: 1.1.1
Weight: 10%
Objective:
Write a Java program with a standard procedural structure and save the work to a repository.
Group Size: 1‐2
This assignment can be completed independently, or you may pair with another individual from the same tutorial. You and your partner must write all the code you submit. Refer to the plagiarism guide at the end of this document for more details. You and your partner should be able to answer any questions about the codebase and fully understand what the code is doing. Individual marks may differ from the overall assignment grade based on how well you can answer these questions. If working with a partner, you and your partner must submit a solution to D2L. If a Git repository is required, you may use the same repository or separate repositories.
Technology
Java (JDK) 22, Git
Submission instructions
You must submit your assignment electronically in D2L, commit it to a repository in GitLab (csgit.ucalgary.ca), and have all of the TAs and instructors set as developers on the repository.
Submit your completed SnakeGame.java to D2L. Do not submit *.class files or any other files. Include your name and UCID at the top (and your partner’s if you have one). Additionally, submit a text document with the link to your repository (name the document gitlink.txt).
Please use the Assignment 1 Dropbox in D2L to submit your codebase. This submission must include all required .java files, which will be listed later. If you complete this assignment with a partner, you and your partner must submit the assignment to the Assignment 1 Dropbox in D2L.
In D2L, you can submit multiple times over the top of a previous submission. Do not wait until the last minute to attempt to submit! D2L is notorious for glitches and hangups at the 11th hour.
Your assignment must be completed in Java (not Kotlin or others) and executable with Java version 22 (JDK 22). You must only use standard libraries. Failure to submit the required .java files in D2L will be treated as a non‐ submission for the assignment. TAs will not grade .class files and will not make requests for missing files. Do not submit complete IntelliJ project folders in D2L.

Overview
You will complete a Java program that simulates a simplified version of the classic Snake game. The game's objective is for the player to navigate the snake around a grid, eating food to grow longer while avoiding collisions with the walls or itself. Your program must adhere to procedural programming principles and use global variables to maintain the game state. You will create one Java file: SnakeGame.java. The program will be text‐based and should use methods from both files to function correctly.
Game Description
In this simplified Snake game, the player controls a snake that moves around a grid. The snake grows longer each time it eats food, and the game ends if the snake collides with itself or the walls.
Game Specifications:
GAME BOARD
The game grid will be 20 (wide) x 10 (tall), and the walls will be marked with ‘#’ symbols.
THE SNAKE
The snake is represented by one or more ‘S’ characters. Whenever the game starts, it should start at a random location. When the game first starts, the length of the snake is 3. However, only the head is visible as the player moves, the remaining segments of the snake become visible. Whenever the snake eats a fruit (the ‘@’) the snake will grow in length (up to a maximum of 100 segments). If the snake hits a wall (the ‘#’) or itself the game ends.
The player can move the snake up, down, left, or right using the ‘w’, ‘a’, ‘s’, ‘d’ keys and they can quit the game using the ‘q’ key.
FOOD
The food is represented by an ‘@’ character and appears at random locations, but it cannot appear on the snake (S) or on the walls (#).
THE WALLS
The walls form the perimeter of the game board, and are represented by the ‘#’ symbol. The food and segments of the snake cannot be on the wall. A segment of the wall must be at 0,0 (see achievements).

EXAMPLE
Below is an example of the first few steps in the game:
####################
#..S...............#
#..................#
#..................#
#....@.............#
#..................#
#..................#
#..................#
#..................#
####################
Enter: w/a/s/d/q
s
####################
#..S...............#
#..S...............#
#..................#
#....@.............#
#..................#
#..................#
#..................#
#..................#
####################
Enter: w/a/s/d/q
s
####################
#..S...............#
#..S...............#
#..S...............#
#....@.............#
#..................#
#..................#
#..................#
#..................#
####################
Enter: w/a/s/d/q
s

####################
#..................#
#..S...............#
#..S...............#
#..S.@.............#
#..................#
#..................#
#..................#
#..................#
####################
Enter: w/a/s/d/q
d
####################
#..................#
#..................#
#..S...............#
#..SS@.............#
#..................#
#..................#
#..................#
#..................#
####################
Enter: w/a/s/d/q
d
####################
#..................#
#.................@#
#..S...............#
#..SSS.............#
#..................#
#..................#
#..................#
#..................#
####################

Requirements
Global Variables: Use global variables to maintain the game state, including the snake's position, the length of the snake, and the game grid.
Procedural Design: Your implementation must be procedural without custom classes and objects.
Documentation: Provide clear comments and documentation within your code explaining each function's functionality and the program's overall structure.
Display: in the console, display the game grid, the food and the snake
User Interaction: Input commands to move the snake ('w' for up, 's' for down, 'a' for left, 'd' for right, ‘q’ to quit).
Check for collisions and generate new food after the snake “eats” the existing food.
End the game when the snake collides with the walls or itself.
The snake should start as three segments long and should “grow” (add another segment) each time after it “eats” the food.
A starting file has been provided for you. You must use the variables and methods present in that file (e.g., initializeGame()), but you can add any additional variables and methods you need.
Demonstration
You must demonstrate your assignment to the tutorial leader to receive a mark for this assignment. The tutorial leader will ask questions to test your understanding of your submitted code. Your assignment will receive an F if you cannot sufficiently answer any of the questions from a TA or instructor. A demo is required in order to receive any grade for this assignment.
Grading
You will receive a B‐grade if you complete everything this assignment requires. You can complete additional requirements to improve your grade beyond a B+ (see the A Grade Range Requirements). These additional tasks are designed to challenge you further and provide an opportunity to demonstrate a deeper understanding of the material and greater skill.
The most important part of these assignments is your understanding of the code. You need to be able to demonstrate that you understand the code you are submitting. Failure to explain your code will be considered a case of copying code from another source (ChatGPT, another student, etc.) and qualify for academic misconduct.

B GRADE RANGE REQUIREMENTS:
Submission Complete: The assignment was submitted on time to D2L with all required files (SnakeGame.java and gitlink.txt) and a link to GitLab with the TAs and instructor as developers.
Functionality: The program works as required and meets the specifications (initializing the game, displaying the grid, moving the snake, and generating food).
Code Base: All of the required methods and variables are present and the code makes logical sense. Code Documentation: Code is well documented.
Demonstration: The student satisfactorily answers the tutorial leader's questions about the code and clearly understands the implementation.
A GRADE RANGE REQUIREMENTS
To improve your grade beyond a B, you need to complete all of the tasks outlined in the B Grade Range Requirements and the additional tasks below. The TAs will not help you with these.
Obstacles: Add random obstacles ('%') to the grid that the snake must avoid. These obstacles should not move but provide additional challenges for navigation.
Wrap‐Around Movement: Implement wrap‐around movement so that the snake can move off one grid edge and reappear on the opposite edge in areas with gaps in the wall (you will also need to implement the gaps in the wall).
C GRADE RANGE REQUIREMENTS
Submission: The assignment is submitted on time to D2L with all required files and a link to the repository with the TAs and instructor as developers.
Code Explanation: The student satisfactorily answers the tutorial leader's questions about the code and clearly understands the implementation.
One or more of the following apply:
Limited Functionality: The game grid displays the walls, the food and the starting location of the snake, but other functionality is missing or broken.
Limited/No Documentation: Significant parts of the code are not adequately documented.
Code Quality: The code breaks a few of the requirements (e.g., methods and variables required to be used, or is not procedural, etc).
D Grade Range
Significant portions of the program are missing or broken, however, required files were submitted. Explanations of the code are poor.
F Grade
Submission was missing or the student is not able to answer the questions of the TA adequately.

LATE POLICY
The following late policy from SENG300 will be used if you are out of the five grace days:
assessment_grade = raw_grade * (1 – max(0, (hours_late ‐ 1) / **))
This means there is a maximum of 1 hour grace period before the penalties begin. After 48 hours, the assignment is worth 0.

INCOMPLETE
This assignment will be marked as “Incomplete” if any of the conditions below apply to your assignment. If your assignment is incomplete, you must submit the missing components within two days. Failure to submit incomplete assignment components will result in an (F) for that assignment. Each missing component will decrease your letter grade for the assignment by half a letter grade step.
Incomplete conditions:
**3; GitLab repo incomplete (missing link, TAs and instructor not established as a developer)
**3; Required *.java files missing in D2L
**3; Required *.java files missing in the repository
Plagiarism
Discussing the assignment requirements with others is reasonable and an excellent way to learn. However, the work you hand in must ultimately be your work. This is essential for you to benefit from the learning experience and for the instructors and TAs to grade you fairly. Handing in work that is not your original work but is represented as such is plagiarism and academic misconduct. Penalties for academic misconduct are outlined in the university calendar.
Here are some tips to avoid plagiarism in your programming assignments.
1. Cite all sources of code you hand in that are not your original work. You can put the citations into comments in your program. For example, if you find and use code found on a website, include a comment that says, for example:
# The following code is from
Use the complete URL so that the marker can check the source.
2. A tool like chat‐GPT can be used to improve small code blocks. For example, five lines of code. If you get help from code assistance like Chat‐GPT, you should comment above the block of code you requested assistance on debugging or improving and cite the tool used to get that suggestion. Using a tool like chat‐ GPT to write the majority of your assignment requirements will be treated as plagiarism if found without citation, and with citation, it will be treated as 0 for the component the student did not complete. Code improvement of short length will get credit if commented/cited properly.
3. Citing sources avoids accusations of plagiarism and penalties for academic misconduct. However, you may still get a low grade if you submit code not primarily developed by yourself. Cited material should never be used to complete core assignment specifications. Before submitting, you can and should verify any code you are concerned about with your instructor/TA.
4. Discuss and share ideas with other programmers as much as you like, but make sure that when you write your code, it is your own. A good rule of thumb is to wait 20 minutes after talking with somebody before writing your code. If you exchange code with another student, write code while discussing it with a fellow student, or copy code from another person’s screen, this code is not yours.
5. Collaborative coding outside your team is strictly prohibited. Your assignment submission must be strictly your code. Discussing anything beyond assignment requirements and ideas is a strictly forbidden form of collaboration. This includes sharing code, discussing the code itself, or modelling code after another

student's algorithm. You cannot use (even with citation) another student’s code.
6. Making your code available, even passively, for others to copy or potentially copy is also plagiarism.
7. We will look for plagiarism in all code submissions, possibly using automated software designed for the
task. For example, see Measures of Software Similarity (MOSS ‐ https://theory.stanford.edu/~aiken/moss/).
8. Remember, if you are having trouble with an assignment, it is always better to go to your TA and/or instructor for help rather than plagiarizing. A common penalty is an F on a plagiarized assignment.
9. See the Course Outline for the policy on Generative AI use (such as ChatGPT). Generally, you can use ChatGPT to help understand concepts and to debug code. Always cite your use of Generative AI and explain what the code does.


請加QQ:99515681  郵箱:99515681@qq.com   WX:codinghelp







 

掃一掃在手機打開當前頁
  • 上一篇:代做INCS 775、代寫python設計編程
  • 下一篇:CPSC 219代做、代寫Java語言設計
  • 無相關信息
    合肥生活資訊

    合肥圖文信息
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    急尋熱仿真分析?代做熱仿真服務+熱設計優化
    出評 開團工具
    出評 開團工具
    挖掘機濾芯提升發動機性能
    挖掘機濾芯提升發動機性能
    海信羅馬假日洗衣機亮相AWE  復古美學與現代科技完美結合
    海信羅馬假日洗衣機亮相AWE 復古美學與現代
    合肥機場巴士4號線
    合肥機場巴士4號線
    合肥機場巴士3號線
    合肥機場巴士3號線
    合肥機場巴士2號線
    合肥機場巴士2號線
    合肥機場巴士1號線
    合肥機場巴士1號線
  • 短信驗證碼 酒店vi設計 deepseek 幣安下載 AI生圖 AI寫作 aippt AI生成PPT 阿里商辦

    關于我們 | 打賞支持 | 廣告服務 | 聯系我們 | 網站地圖 | 免責聲明 | 幫助中心 | 友情鏈接 |

    Copyright © 2025 hfw.cc Inc. All Rights Reserved. 合肥網 版權所有
    ICP備06013414號-3 公安備 42010502001045

    日韩精品一区二区三区高清_久久国产热这里只有精品8_天天做爽夜夜做爽_一本岛在免费一二三区

      <em id="rw4ev"></em>

        <tr id="rw4ev"></tr>

        <nav id="rw4ev"></nav>
        <strike id="rw4ev"><pre id="rw4ev"></pre></strike>
        久久成人精品一区二区三区| 欧美亚洲免费在线| 性久久久久久| 久久综合九色综合欧美就去吻| 久久久人成影片一区二区三区| 亚洲专区一区二区三区| 乱中年女人伦av一区二区| 1000部国产精品成人观看| 在线天堂一区av电影| 日韩网站在线看片你懂的| 一区二区三区在线不卡| 亚洲第一黄色| 狠狠色伊人亚洲综合成人| 欧美色欧美亚洲高清在线视频| 欧美精品三级日韩久久| 亚洲精品一区二区三区樱花| 99精品视频一区二区三区| 91久久久一线二线三线品牌| 欧美ab在线视频| 欧美精品二区| 国产精品va在线播放我和闺蜜| 欧美黄色大片网站| 亚洲专区免费| 欧美中文字幕久久| 国产精品自在欧美一区| 国产一区二区精品丝袜| 一区二区久久久久| 国产亚洲精品久久久久动| 在线精品国产成人综合| 亚洲美女在线观看| 欧美日韩国产片| 久久青草欧美一区二区三区| 久久久久在线观看| 欧美精品久久一区二区| 免费中文字幕日韩欧美| 国产精品日韩欧美一区| 国产精品免费网站在线观看| 亚洲砖区区免费| 欧美日韩xxxxx| 亚洲欧美日韩在线观看a三区| 午夜精品久久久久久| 亚洲国产国产亚洲一二三| 亚洲欧美清纯在线制服| 国产精品丝袜久久久久久app| 亚洲伊人伊色伊影伊综合网| 欧美日韩一区二区欧美激情| 欧美一级大片在线观看| 狠狠色狠狠色综合日日五| 亚洲特色特黄| 另类尿喷潮videofree| 欧美一区二区三区久久精品| 久久精品卡一| 欧美精品v国产精品v日韩精品| 国语自产偷拍精品视频偷| 久久不射2019中文字幕| 性色av一区二区怡红| 国产一区二区三区直播精品电影| 国产精品豆花视频| 亚洲欧洲精品一区二区三区| 国产日本欧美一区二区三区| 欧美日韩综合在线免费观看| 欧美激情aⅴ一区二区三区| 亚洲国产精品久久人人爱蜜臀| 亚洲人体影院| 久久精品亚洲热| 欧美伊人精品成人久久综合97| 国产女人18毛片水18精品| 亚洲最新在线视频| 久久精品一区二区三区中文字幕| 亚洲国产高清一区二区三区| 欧美在线视频免费| 在线观看视频免费一区二区三区| 久久国产一区二区三区| 亚洲精品国产品国语在线app| 欧美一区亚洲一区| 欧美激情女人20p| 欧美在线观看视频一区二区| 99精品欧美一区二区三区综合在线| 久久五月婷婷丁香社区| 国产日韩欧美综合| 欧美一区二区视频观看视频| 久久久www成人免费毛片麻豆| 在线国产亚洲欧美| 黄色av成人| 米奇777在线欧美播放| 亚洲视频在线视频| 久久免费黄色| 亚洲午夜久久久久久久久电影院| 欧美一区视频| 亚洲乱码视频| 日韩一级欧洲| 久久精品夜夜夜夜久久| 美女视频黄a大片欧美| 亚洲精品国产视频| 国产中文一区二区三区| 一本色道久久综合亚洲精品小说| 亚洲小说欧美另类社区| 国产精品一区二区黑丝| 国产亚洲免费的视频看| 欧美日韩免费看| 亚洲欧美一区二区精品久久久| 亚洲欧美春色| 91久久精品国产91久久性色| 国产伪娘ts一区| 欧美日韩综合网| 欧美一级淫片aaaaaaa视频| 欧美午夜一区二区三区免费大片| 欧美诱惑福利视频| 欧美在线观看天堂一区二区三区| 欧美视频四区| 久久精品国产第一区二区三区最新章节| 国产日产欧美一区| 欧美伊人精品成人久久综合97| 国产精品丝袜白浆摸在线| 亚洲精品网址在线观看| 国产精品亚洲аv天堂网| 老司机久久99久久精品播放免费| 狠狠爱www人成狠狠爱综合网| 国产一区二区三区视频在线观看| 欧美一区日本一区韩国一区| 久久午夜精品| 国产农村妇女毛片精品久久莱园子| 欧美中文字幕| 国产精品一卡二卡| 欧美色欧美亚洲另类二区| 国产真实精品久久二三区| 亚洲日本va在线观看| 亚洲伦理在线观看| 午夜电影亚洲| 亚洲深夜av| 欧美激情精品久久久六区热门| 亚洲永久免费视频| 亚洲精品在线免费| 亚洲永久免费观看| 欧美国产日韩亚洲一区| 久久久精品999| 免费成人黄色| 国产精品国产福利国产秒拍| 亚洲人成精品久久久久| 欧美精品一区二区三区很污很色的| 国产精品欧美日韩一区二区| 亚洲精品小视频| 久久精品夜夜夜夜久久| 久久综合九色综合久99| 国产精品卡一卡二卡三| 欧美日韩亚洲一区二区三区四区| 亚洲欧美在线网| 亚洲性视频网站| 国产伦精品一区二区三区照片91| 亚洲品质自拍| 亚洲国产精品免费| 一区二区三区国产| 在线观看亚洲精品视频| 国产农村妇女毛片精品久久莱园子| 在线综合亚洲欧美在线视频| 久久久久久国产精品一区| 在线视频你懂得一区| 一区二区三区免费在线观看| 久久激情一区| 亚洲乱码日产精品bd| 国产精品久久久久久久久果冻传媒| 亚洲视频精品在线| 这里只有精品电影| 久久久欧美一区二区|