Need help finishing up week 12 exercise 49 WormGame

36 views
Skip to first unread message

richar...@gmail.com

unread,
Feb 23, 2018, 12:32:14 PM2/23/18
to mooc.fi
Hi,

I'm having problems with week 12 exercise 49  on course Java OOP Part 2.

*Explain your problem here in English or Finnish*

I'm almost finished with this assignment.  However, there are 2 errors I'm stuck on.  Could anyone tell me what these errors mean and how do to resolve them?    

FAIL: wormgame.WormGameTest isDrawingBoard
UnsupportedOperationException: Not supported yet, in call paintComponent(<error in .toString() of arg>). error caused by code:WormGame mp = new WormGame(20,10);
mp.actionPerformed(null)
mp.actionPerformed(null)
mp.actionPerformed(null)
DrawingBoard pa = new DrawingBoard(mp, 10);
pa.paintComonent(g);


FAIL: wormgame.WormGameTest drawingBoardNoticesTheSideLength
UnsupportedOperationException: Not supported yet, in call paintComponent(<error in .toString() of arg>). error caused by code:WormGame mp = new WormGame(20,10);
DrawingBoard pa = new DrawingBoard(mp, 20);
pa.paintComonent(g);




Best regards


Supported languages are English and Finnish

Please use our build in TMC Pastebin when asking questions related to your code  
 
TMC Plugin has built-in code sharing feature. 
In NetBeans, select TMC -> Send code to TMC pastebin. Copy the link you receive and paste it to your message.  

You may use our web interface to share code snippets: http://paste.mooc.fi
Message has been deleted

richar...@gmail.com

unread,
Feb 24, 2018, 12:12:08 PM2/24/18
to mooc.fi
Nevermind, solved it.  I accidentally used "draw3DRect" instead of "fill3DRect" like the instructions wanted.
Reply all
Reply to author
Forward
0 new messages