This site requires JavaScript, please enable it in your browser!
Greenfoot back

Report as inappropriate.

DillonCummings
DillonCummings presents ...

2012/10/3

tic tac toe

No description.

3927 views / 10 in the last 7 days

Tags: game demo with-source

open in greenfoot
Your browser does not support the canvas tag.
A new version of this scenario was uploaded on Wed Oct 03 12:51:46 UTC 2012 If you could download this and tell me what im doing wrong it would be great. Thanks.
If you could download this and tell me what im doing wrong it would be great. Thanks.
danpostdanpost

2012/10/3

The first thing I noticed was that you do not have any Player class object added to the world. Then, I saw some unwanted characters in your code - remove the semi-colon ( ; ) in the Gameball class at the end of 'getGold()' method - remove one pair of brackets ( } { ) in the Player class between the 'if's in the 'act' method Finally, in that second 'if' block, you need to switch the calls to 'setPlayer1()' and 'setPlayer2()'. That should fix what you have so far.

Want to leave a comment? You must first log in.

Who likes this?

No votes yet.