nDOX

By Krendil - uploaded on 2009-1-24      1249 views (61 in the last 7 days)      1 vote (0 in the last 7 days)

Tags: game with-source tic-tac-toe noughts and crosses ai gui

You can use this to play noughts and crosses (tic tac toe)
in any amount of dimensions (right now, only 4 fit on the screen) of any size
(you don't really want to go above 4 or 5). Please make more AI's for this!
If we get enough, there will be a tournament, but we need at least 3 more.

UPDATE 1/2/09:
No noticable changes, but I did get an n-dimensional coordinate system working.

UPDATE 2/2/09:
Same as last time, but now the coordinate system really does work

UPDATE 9/2/09:
Now with win detection! When someone wins, the outlines of the winning cells should turn red.

UPDATE 9/2/09 again:
This is not a double post - I added ai support. No actual ai yet, but feel free to make your own.
Just implement the AI interface and edit lines 45 or 46 in GameKeeper and line 27 in NDOXWorld.
Don't forget to share your ai's!

UPDATE 12/02/09:
Now with an AI!
Optimised some stuff.
Next up: GUI with grid size and ai chooser.

UPDATE 16/02/09:
Added GUI with AI and grid size chooser.
Ability to import custom AIs from .class files! Please use correct constructor as commented in AI interface.
WARNING: Remember not to start a game with 0 dimensions!

UPDATE 27/03/09:
Ack, finally got around to fixing some gui bugs,
and added new, smarter ai. I guess this will be as close as it gets to being finished.


Open the scenario in Greenfoot.
Download the source for this scenario.


Your browser is ignoring the <APPLET> tag.

Some people who like this scenario: Yoinkinator


This scenario is a member of the following collections: Reusable actors & support classes


Report this scenario as broken or inappropriate.

A new version of this scenario was uploaded on Mon Feb 09 12:27:37 UTC 2009

A new version of this scenario was uploaded on Mon Feb 09 13:06:34 UTC 2009

A new version of this scenario was uploaded on Thu Feb 12 11:25:47 UTC 2009

A new version of this scenario was uploaded on Mon Feb 16 14:33:20 UTC 2009

mjrb4 writes (on 2009-3-7):

Perhaps it'd be good if there was some functionality stopping the user from selecting any number of dimensions and length <1?

Ninto writes (on 2009-3-20):

I'm using a newer version of greenfoot and it can't find the method 'Arrays.copyOf(coordinates, coordinates+1)'
line 60 in the code of Cell.

Ninto writes (on 2009-3-20):

where did you find that?

 

Krendil writes (on 2009-3-21):

It's in java.util.Arrays. Make sure you have the latest version of java, as that method was only added in version 1.6.
(Man, I really need to finish this.)

A new version of this scenario was uploaded on Fri Mar 27 15:44:04 UTC 2009

RHINO_Mk.II writes (on 2009-6-4):

Muah ha haaaa I beat your trap spotter AI... You'll have to do better than that to defeat the human mind! (Of course, my turns took longer.. ^^)

See all comments for this scenario.



If you want to leave a comment on this scenario, you must first log in.


The Greenfoot Network:  Greenfoot.org    Greenfoot Gallery   Greenfoot-Discuss

Our sponsors:

University of Kent Deakin University Sun Microsystems