ID:268989
 
....How? :O Tch, Im making a tamagotchi like game, I want a little bit more advanced games.... Anyway, How do I make it when you Click() obj/TicTacToe, it takes you to a new z level with the 3x3 tiles (which are white with lines around the edges), how do I make an ai player for the person to play with, giving the ai player X , and the person O?
That's what *you* have to find out.
A few hints would be to use the following:

obj/TicTacToe/Click(mob/M)M.loc=locate(3,3,2) //move the player to x 3, y 3, and z level 2.


obj/X/icon='X.dmi' //of course
obj/O/icon='O.dmi' //you can always use icon_states
var/mob/turn
mob/var/symbol="X"
obj/field/Click()
if(turn==src)
if(src.symbol=="X")new/obj/X(src.loc)
else new/obj/O(src.loc)
else src<<"<i>It isn't your turn!"


I can't give any help with the AI player though --- you'll have to figure that out by yourself. ;)
In response to Phoenix Man
AI for Noughts and Crosses (that's what we call it Down Under) isn't exactly hard, as AIs go. It's pretty formulaic. =)