Discussion Board
There are no previous messagesGo to the following message
Current Forum: Homework 6 Part 1
Date: Wed Dec 5 2001 12:49 am
Author: Kohl, Charles M. <ckohl@andrew.cmu.edu>
Subject: toString() in Space

for some reason, we cannot get Spaces to print out correctly. we ran the following test (and several others), and each time the string printed was "EMPTY". any idea what is going on here?

Space first = new Space(0);
Space second = new Space(1);
Space third = new Space(2);

System.out.println(((Space)first).toString());
System.out.println(((Space)second).toString());
System.out.println(((Space)third).toString());

the problem occurs in the call to b.getActivePlayer()
Post response

There are no previous messagesGo to the following message
Current Thread Detail:
toString() in Space      Kohl, Charles M.      Wed Dec 5 2001 12:49 am       
Re: toString() in Space      Fields, David C.      Wed Dec 5 2001 2:13 am       
Re: toString() in Space      Maxim, Michael G.      Wed Dec 5 2001 2:55 am       

Back to previous screen