LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Tic Tac Toe Coding Challenge

I can't resist :


altenbach a écrit: ... Since we know that all boards with up to five pieces are a draw...

WRONG ! There is one situation where X lose at his third move...Therefore "all boards with up to four pieces are a draw" ;):D

Chilly Charly    (aka CC)
Message 101 of 183
(5,327 Views)

Chilly, I guess I am missing your point.  It takes four marks in a row to "win" the game, so how can the game be over after the third move?

I won't change the template for the official competition.  Nothing says you have to use all the inputs provided, though.  They just need to be there so they fit into the tester template.

I do like the idea of having to start from random positions.  Even with the first one or two moves given as a random starting place, it would test the ability of the algorithms to recover from a stupid move.  I won't change the original method of play, but perhaps this could be incorporated as a tie breaker instead of fastest player.

Bruce

Bruce Ammons
Ammons Engineering
Message 102 of 183
(5,321 Views)

CC & Altenbach have w-a-y too much (free) time on their hands....  😉

sigh 😐 

Message 103 of 183
(5,316 Views)


Bruce Ammons a écrit: Chilly, I guess I am missing your point.  It takes four marks in a row to "win" the game, so how can the game be over after the third move?
Well, I should have said "X will lose (against a perfect player) whatever his further moves"...
Chilly Charly    (aka CC)
Message 104 of 183
(5,314 Views)
CC
 
You mean to tell me that there is a position containg two Xs and two Os that is a forced loss for X under the rules of the challenge?
 
Can you loose it against Deepest Toe (set to play to loose)?
 
If this is true, maybe my DT has some serious athletes foot (I did some cuts late in the development so it is possible that a bug snuck in). 😉
Message 105 of 183
(5,316 Views)


altenbach a écrit:

You mean to tell me that there is a position containg two Xs and two Os that is a forced loss for X under the rules of the challenge ?


Sorry ! I mixed the relative moves. You are right, only the sixth move (for O) can lead to a loss ! That's the sort of mistakes you do while far from the board. Seems that I'm poor at mental TTT. I should stay with mental chess...

I apologize sincerely. How can I make up for this silly error ? I'm so disturbed now ! How terrible... That's all my fault !!!... Now were did I put that rope ?...

Chilly Charly    (aka CC)
Message 106 of 183
(5,324 Views)

CC wrote

"Now were did I put that rope ?..."

Would you like to borrow mine?*

Ben

Sorry could not resist.

*Credits: The above is variation on an old Saturday Night Live skit where Eddy Haskle replies to Beever lamenting over not having a gun to shoot himself.

 

Retired Senior Automation Systems Architect with Data Science Automation LabVIEW Champion Knight of NI and Prepper LinkedIn Profile YouTube Channel
Message 107 of 183
(5,311 Views)


@chilly charly wrote:

Sorry ! I mixed the relative moves. You are right, only the sixth move (for O) can lead to a loss ! That's the sort of mistakes you do while far from the board. Seems that I'm poor at mental TTT. I should stay with mental chess.


Maybe one of the next challenges will be a LabVIEW based chess player, so this will come in handy. 😄


@chilly charly wrote:

I apologize sincerely. How can I make up for this silly error ? I'm so disturbed now ! How terrible... That's all my fault !!!... Now were did I put that rope ?...


And I was pretty sure you were just trying to mess with my mind.. 😉

Instead of a rope, you could just use a wire, there should be a spool in the tools palette. (Unfortunaltely, it does not allow you to make any wire loops).

Message 108 of 183
(5,303 Views)


@altenbach wrote:

Instead of a rope, you could just use a wire, there should be a spool in the tools palette. (Unfortunaltely, it does not allow you to make any wire loops).




With a little imagination, Labview can do anything. Robot tongue


Message Edited by jasonhill on 05-16-2006 04:53 PM

Message 109 of 183
(5,300 Views)
Many thanks to all of you for helping me to solve definitively my shame problem.
So here my method, using only standard LabVIEW objects :
- a tree
- a strong wire
- a loop.
You will notice that the stop button has been suppressed. Of course, when I press the run button, LabVIEW... hangs !
 
Errrkkk...
 
 

Message Edité par chilly charly le 05-17-2006 12:14 PM

Chilly Charly    (aka CC)
Message 110 of 183
(5,266 Views)