A86: Re: Thanks for the help everyone
[Prev][Next][Index][Thread]
A86: Re: Thanks for the help everyone
i had made a vb version of tic tac toe, and used the same method. but, i
used 1 for x, and 2 for o. if you do that, when you try to check a row with
only an x and an o, it will say that x wins because 1+2=3. An easy way to
solve this is to make o higher, in my vb version, i made it 5, and it works
perfectly.
if you want, i'll email what i did for vb.
akshay
----- Original Message -----
From: Chris Flanigan <cflan@granitecity.com>
To: 86 Assembly <assembly-86@lists.ticalc.org>
Sent: Saturday, January 23, 1999 7:02 PM
Subject: A86: Thanks for the help everyone
>
>Thanks for the help with ASM everyone. I'm reading and learning a lot.
>I'm
>currently working on a deluxe virus checking program (lame but it
>works with
>simple ASM principles). I've discontinued tic-tac-toe because I
>couldn't
>figure out how to make a sufficient ending. I was going to use the
>principle
>of vectors. For example,
>
> | |
> 1 | 2 | 3
> -------+---------+--------
> | |
> 4 | 5 | 6
> -------+---------+--------
> | |
> 7 | 8 | 9
>
>If x's had control over the 1, 4 and 7 sectors and when x put a mark
>in that
>sector the value of it went to 1; the sum to check would be 3. If x
>had a
>mark in each, 1+1+1=3. For the o's I would give the sector a value of
>two
>and make the sum 6
>
>If was going to try it this way and check every possible combination.
>I kept
>getting x to win every time even if o had the win. Maybe I screwed up
>somehow but I did this in BASIC and it worked. I would show you the
>BASIC
>source so you could get a clue but when I wasn't looking my cousing
>took the
>batteries out and I lost it. (That really sucks.)
>
>This message was written by Chris Flanigan.
>
>If this is in reply to an inquiry about the TI Archive, direct
>all e-mail to ti_archive@hotmail.com.
>
>If this is a personal message, direct all e-mail to
>cflan@granitecity.com
>
>
>
>