Jump to content

Photo

Undefeatable Toe

Zim TicTacToe

  • Please log in to reply
9 replies to this topic

#1 Zim2

Zim2

    Newbie

  • Members

Posted 30 May 2014 - 03:13 PM

https://onedrive.liv....HlhBzCnfGyhcIY

 

Hi,

Zim here.

 

Been awhile since I posted anything on PureZC.  (I got blitzed and lost my password and email password.)

 

 

Here is a quest file with a non-defeatable TicTacToe game.  Enjoy.

 

 



#2 Zim2

Zim2

    Newbie

  • Members

Posted 30 May 2014 - 04:13 PM

https://onedrive.liv....EzufvC569kjz84

 

Correction, the above TicTacToe game is actually defeatable, there is one strategy that works, sometimes.

 

The link in this post is an ACTUAL non-defeatable tictactoe game.

 

Edit:  Apparently this one is winnable too.


Edited by Zim2, 30 May 2014 - 04:16 PM.


#3 Avaro

Avaro

    o_o

  • Members
  • Real Name:Robin
  • Location:Germany

Posted 30 May 2014 - 04:43 PM

Wait what? This seems interesting. I'll look into this :D



#4 Zim2

Zim2

    Newbie

  • Members

Posted 30 May 2014 - 04:47 PM

Okay okay, 

this one should be FLAWLESS.

https://onedrive.liv...AJOWaWUVH0vtg8Q

 

Non-Winnable.

 

Feedback, thoughts, comments, or suggestions are welcome.

 

Also, let me know if you'd like a mouse-click on the grid Tic Tac Toe interface so you can lose every time with the glory of mouse functionality, of course, I'd just change the Loss counter to make it say WIN, because ZScript is my friend.


Edited by Zim2, 30 May 2014 - 04:50 PM.


#5 Avaro

Avaro

    o_o

  • Members
  • Real Name:Robin
  • Location:Germany

Posted 30 May 2014 - 04:50 PM

Okay okay, 

this one should be FLAWLESS.

https://onedrive.liv...AJOWaWUVH0vtg8Q

 

Non-Winnable.

Well, it may be non-winnable, but it's a bit buggy anyways. Sometimes my opponent doesn't even do a move when he should. The game doesn't end when someone won. And graphically it doesn't look very good either. You could do much more with this :)


Edited by Avataro, 30 May 2014 - 04:54 PM.


#6 Zim2

Zim2

    Newbie

  • Members

Posted 30 May 2014 - 04:55 PM

Right right, it's in Beta phase right now.

 

It's going to end up being a mini-game in a different game anyway.

 

R button to reset the board.

 

Also, I just found another way to win.


  • Avaro and MarinaraSauce like this

#7 Zim2

Zim2

    Newbie

  • Members

Posted 30 May 2014 - 05:15 PM

The reason why the board doesn't reset is because I didn't feel like making a timer like thing that resets after the player looks at the board for some amount of time but decided that a reset button would be better. 

 

Press R to reset.

 

This is the final for now:

https://onedrive.liv...AIMES6b5QhSg7L8

 

I am 99.9% certain this one is non-winnable.


Edited by Zim2, 30 May 2014 - 05:15 PM.


#8 Jamian

Jamian

    ZC enthusiast

  • Members

Posted 30 May 2014 - 05:58 PM

Nice idea. Here's a link to a javascript version that is undefeatable in expert mode, in case you want to have a look (even if you don't know any javascript, you can just watch how the expert computer plays): http://ostermiller.o.../tictactoe.html

 

How about implementing difficulty levels so the player can actually win if the script is not using expert mode?


Edited by Jamian, 30 May 2014 - 06:01 PM.


#9 Zim2

Zim2

    Newbie

  • Members

Posted 10 June 2014 - 08:34 PM

I did consider that:

Dunce: CPU moves at random, even if there's a chance it could win.

Intermediate: CPU wins only when obvious mistakes are made.

Advanced: CPU makes attempts to win, but factor in some Rand so it makes mistakes sometimes.

Undefeated: CPU always makes most optimum move.

 

Also, this version I made doesn't take turns going first or anything fancy like that.

 

I thought it'd be nice to implement in a quest later on when I actually make a full quest someday.



#10 ZeldaPlayer

ZeldaPlayer

    What's up my playas

  • Members
  • Location:USA

Posted 30 June 2014 - 07:07 PM

This is almost impossible to the beat the toe. I tried this script and I couldn't defeat it.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users