Java Required Document Preview: CMPT 305 Lecture Assignment One Due: 9:00pm, September 24, 2012 Create a Java text based Connect Four game for two human players. Submit your solutions by uploading them to the class Moodle site. When your upload to the Moodle site, include your source code, your bytecode, an example trace of your program running, and relevant documentation (JavaDoc files). Put your solution into its own directory and use your personal name in the directory name. For example: JanzenAssignment1. Compress all your submitted documents into one jar file, and submit the jar file. Name the file with your name, assignment type, and assignment number. For example, Janzen Assignment1.jar. Assignments that do not compile or run may be awarded a mark of zero. Use JavaDoc to comment your program, remembering to comment each class and method. Include your name, student ID, class, and assignment type and number in a regular comment, at the top of each source file (you should have one source file for this assignment). Remember to use comments (not JavaDoc) to describe any non-trivial code. See text file for example trace outputs. Connect Four: Make a two player, 6?6, text based Connect Four game. Your program should ask each user, in turn, to select a move by entering a position, numbered 1 to 6. Your program should determine the actual location and write a R or a Y to that location depending on the players pieces colour (red or yellow). Remember that the player can select any column but that pieces are added from the bottom up. If the player enters q or Q then the program should exit. If the player enters an invalid move then display an error and re-prompt for a move. Your program should detect winning boards, congratulate the red or yellow player that won, and then exit. Remember there are four directions that can lead to a winning position: horizontal, vertical, and two diagonals. The purpose of this assignment is to become more familiar with Java syntax and programming. For Attachments: CMPT305-Assig.pdf ConnectFour.txt; Java Required Document Preview: CMPT 305 Lecture Assignment One Due: 9:00pm, September 24, 2012 Create a Java text based Connect Four game for two human players. Submit your solutions by uploading them to the class Moodle site. When your upload to the Moodle site, include your source code, your bytecode, an example trace of your program running, and relevant documentation (JavaDoc files). Put your solution into its own directory and use your personal name in the directory name. For example: JanzenAssignment1. Compress all your submitted documents into one jar file, and submit the jar file. Name the file with your name, assignment type, and assignment number. For example, Janzen Assignment1.jar. Assignments that do not compile or run may be awarded a mark of zero. Use JavaDoc to comment your program, remembering to comment each class and method. Include your name, student ID, class, and assignment type and number in a regular comment, at the top of each source file (you should have one source file for this assignment). Remember to use comments (not JavaDoc) to describe any non-trivial code. See text file for example trace outputs. Connect Four: Make a two player, 6?6, text based Connect Four game. Your program should ask each user, in turn, to select a move by entering a position, numbered 1 to 6. Your program should determine the actual location and write a R or a Y to that location depending on the players pieces colour (red or yellow). Remember that the player can select any column but that pieces are added from the bottom up. If the player enters q or Q then the program should exit. If the player enters an invalid move then display an error and re-prompt for a move. Your program should detect winning boards, congratulate the red or yellow player that won, and then exit. Remember there are four directions that can lead to a winning position: horizontal, vertical, and two diagonals. The purpose of this assignment is to become more familiar with Java syntax and programming. For Attachments: CMPT305-Assig.pdf ConnectFour.txt
Use the order calculator below and get started! Contact our live support team for any assistance or inquiry.
[order_calculator]