hw4 - state of the board and the side that is playing; and,...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
1 University of Southern California Daniel J. Epstein Department of Industrial and Systems Engineering ISE 582: Web Technology for Industrial Engineering Homework 4 (Due 2 October 2003) Instructor: Elaine Chew This is an exercise in creating a variation on the game of tic-tac-toe. Assume that your symbol is “X”. You win if a row, column or diagonal contains two X’s and one O. The opposite is true if your symbol is “O”. For example, a possible game is shown below: X X X O O O You should have the following methods: (1) a method that will chooses the best move based on the current
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: state of the board and the side that is playing; and, (2) a method for display a string representation of the current board so that you can see a game play-by-play. Please prepare TWO possible solutions, one using recursion, and one without. As usual, give a diagram of your classes and methods, and document your code using abstract classes and interfaces. You may choose to continue the extreme programming (XP) experiment or work solo on this assignment. E.C. 26 Sep 2003...
View Full Document

This note was uploaded on 02/01/2009 for the course ISE 582 taught by Professor Chew during the Fall '03 term at USC.

Ask a homework question - tutors are online