majorlab1 - CS 112 Major Lab #1 Tic-Tac-Toe Due: Monday,...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 112 Major Lab #1 Tic-Tac-Toe Due : Monday, October 1, 5pm How : Submit printouts to me, and save a copy of the project in your network account folder. Working alone, solve the following programming assignment. Keep in mind that academic dishonesty is defined as the giving or receiving of unauthorized aid (see the course syllabus for more details). Late programs are not accepted. 0. Grading policy You will be graded primarily on design and correctness: a program that works correctly will typically earn a score of 85 (out of 100), a program that doesn’t run is worth maybe 10-20 points. A program that runs but produces incorrect output is worth something in between; you are responsible for testing your own programs. The remaining 15 points of your grade will be based on commenting and readability. For now, this means… Each Java source file must contain a header comment, including your name, the date, the lab assignment, and a brief summary of what the file represents. You should also use readable variable names (e.g. “tictactoe” and “keyboard” instead of “t” and “k”),. Use proper indentation to make your program easier to understand, and use whitespace (i.e. blank lines) to separate blocks of your program & enhance readability. Finally, comments must be added to al l major sections of your program to describe what each section is doing — for now this implies comments at the top of each method, and the top of each chain of if-then-else statements. 1. Background You probably know the childhood game of tic-tac-toe, but just in case you don’t… The game is to get 3 squares in a row, either across, down, or diagonally. The board has squares, in a 3x3 configuration. In our case, it will be the human against the computer: the human will be X, the computer will be O, and the human always moves first. Here’s an example diagram where the human won:
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This lab report was uploaded on 04/08/2008 for the course CSCI 112 taught by Professor Yuen during the Fall '07 term at Lake Forest.

Page1 / 4

majorlab1 - CS 112 Major Lab #1 Tic-Tac-Toe Due: Monday,...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online