Ludii Forum
3D Tic-Tac-Toe - Printable Version

+- Ludii Forum (
+-- Forum: Suggestions (
+--- Forum: Submit Your Games (
+--- Thread: 3D Tic-Tac-Toe (/showthread.php?tid=443)

3D Tic-Tac-Toe - benritter - 02-18-2021

This was the first game in the wish list, so I thought I'd give it a shot.

The end conditions aren't the most elegant, but it works, as far as I can tell.

RE: 3D Tic-Tac-Toe - Eric Piette - 02-22-2021


Thanks for that submission.
I will add it to our dev version and it will be available in a future release.

I probably have a better way to make the end condition to be shorter. Do you allow me to try to do it and to replace it by something shorter if that's possible? I will send you the new version of the lud when I will take the time to modify it if you are agree.

And I would like to add a 3x3x3 option to it too if you are ok with that, like they did on the BGG link.


RE: 3D Tic-Tac-Toe - benritter - 02-22-2021

Hi, Eric. Yes, please change it however you see fit.

I'll be interested to see how you handle the end conditions. My first inclination was to take the most recent move and check whether all the spaces along a certain line were occupied by friendly pieces, but I couldn't figure out how to skip over irrelevant spaces. I included some comments about the applicable slopes (for a 4x4x4 grid). But, of course, feel free to use whatever approach makes the most sense to you.

RE: 3D Tic-Tac-Toe - Eric Piette - 02-26-2021


Ok I took the time to rewrite the .lud to make the ending condition generic enough and also to add the option 3x3x3.
You can see it in attachment.
I will add it to our games then it will be available in the next release.


RE: 3D Tic-Tac-Toe - fbarbe - 03-09-2021

I came across this game in the latest Ludii Player (1.1.16). It seems to me that one end condition is missing: a 3D diagonal line.
For a 4x4x4 board this would be for example A1, B7, C13, D19.

Is this correct?

RE: 3D Tic-Tac-Toe - Eric Piette - 03-09-2021


Not according to the rules of the source which are saying: "... Adjacent hole horizontally, vertically, or in a straight line between levels - but not diagonally".

However I will add that to the rules in the info of the metadata.