this is my 1st time to post. help pls.
can anyone help me program tictactoe (java w/ gui)? req. are comp vs player, player vs player, 2d array, replay, undo..plssss...i need your help :sad: rep asap..thank u very much :cheesy: .. pls:sad:
TingTing
0
Newbie Poster
Recommended Answers
Jump to PostI think you come to wrong forum. We do not do others people homework/coursework/assigments, we try to help and solve problems with in code you already writen.
So if you did your work and have problem with code, please kindly post your code with problem description and we will try …
Jump to PostHmmm,
Well I'm assuming you're using JPanel, or extending JPanel and thus using paintComponent(Graphics g) method.
The you draw image using g.drawImage(image,x,y,this);
So to remove the image, I would have some boolean or array that is updated when you press new game, then you can call repaint() …
All 8 Replies
peter_budo
2,532
Code tags enforcer
Team Colleague
Featured Poster
TingTing
0
Newbie Poster
cms271828
2
Junior Poster
TingTing
0
Newbie Poster
cms271828
2
Junior Poster
TingTing
0
Newbie Poster
cms271828
2
Junior Poster
TingTing
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.