home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Loadstar 217
/
217.d81
/
t.metatactoe
< prev
next >
Wrap
Text File
|
2022-08-26
|
6KB
|
221 lines
u
META TAC TOE
Program and Text by
Brian Crosthwaite
I recall a more carefree time. A
time when Tic Tac Toe was a challenge
-- ok, well it did't last long and was
soon taken over by chess. I still play
an occasional chess game as well as a
Tic Tac Toe game (it's hard to avoid
when you have 5 kids). At recess, my
friend Arlin and I would sit in the
warm spring sun and play, Jacks or
Chess mostly.
In Jr. High the noon time
entertainment often turned to 31. High
School was a bit more sophisticated,
or so we thought. We didn't seem to
have much time for games, although, I
seemed to find time for backgammon.
I had a few tiring (or should I
say downright boring?) classes. I
recall playing the Connect game (often
called Dots) quite often. I remember
playing it on my C64 as well as C16 in
the form of [Connect 'Em] published in
the Compute!'s Gazette.
Somewhere between High School and
that issue of Gazette, probably in
College, I invented Connect Tac Toe.
Connect Tac Toe is a game of Connect
that uses only 16 dots. The object is
to connect the dots to form squares,
the 1st person to complete a square
gets the square, just like the
original, only you win the game by
getting three squares in a row, just
like in Tic Tac Toe. While the game
isn't overly challenging, it is mildly
amusing and a fair time killer.
I added the idea of 9 of these
grids to make a Tic Tac Toe within a
Tic Tac Toe. It didn't get played
quite as much, as it took longer to
set up, but it did get played.
Enter a 3 year old and a Magna
Doodle (magaDoodle to her).
Octavia and I would play (and
still do occasionally) Tic Tac Toe on
her Magna Doodle. We played the
Connect game a few times as well as
the Connect Tac Toe game, but the
medium is not as precise as a pen or
pencil and paper, so Tic Tac Toe got
played more than the others.
I had always thought I'd key up
some code on the 64 to bring the game
to that wonderful glowing medium. I
had just finished a project for Fender
under GEOS about the time Dave here
came took over the mythical Tower.
Dave said games are the way to go, and
so I set out to code the game.
I had been making notes since
April of 2001 when ever I could. I had
this idea to assign a unique variable
to each square then put it in a
string, I'd sort the string then
search for certain criteria that would
tell me I had three in a row.
Well, when I started cranking on
the code it just came out different.
Not all my notes were in vain, and
they certainly helped me to get a
running start. But I never typed a
single line of code on an actual C64.
Anyone who knows me won't be
surprised at this since I am known to
write C64 stuff on my 128 (you can
cram 160 characters into each line and
then load and list in C64 mode --
forget editing in 64 mode ;).
However that was not my major
problem. Time for me is at the premium
of premiums. The year 2000 brought us
twin girls, and doing more than
clicking a mouse in the morning became
difficult.
Enter a Terry Camp trailer.
We decided with 5 kids, we'd never
get out of Dodge. You can't get hotel
rooms for 7 and with two babies;
things are not quite a simple as they
used to be. So we bought a trailer and
a 12 seater 1 ton Van. Early mornings
lent themselves easily to espresso and
coding. In several mornings -- albeit
spread over a large chunk of time -- I
was able to hack out most of the code.
I was able to put the last bits of
polish on while I went (alone) to the
Monastery of the Ascension. I brought
back a virtually finished LOADSTAR
program that the kids love! I did
decide to add a couple of dialogue
texts to inform on who is to pick a
grid and a reminder to press space to
continue after a win. Those, I put in
this morning (I'm at Bonneville Hot
Springs).
We now have a Prowler -- a much
bigger trailer, but little else has
changed aside from the babies getting
bigger and into everything ;) Almost
all coding was done away from home and
all done on my ThinkPad under the VICE
64 emulator. I tested the last version
of Connect Tac Toe on A64 on the
Amiga. The name changed to Meta Tac
Toe rather than connect dots, you
select the dots when playing out your
strategy. The game has been tested on
my 128D in both 64 and 128 modes, 40
and 80 column, 1 and 20 MHz.
GAME PLAY
Game play is simple. X and O
battle it out in a game of wits and
cunning. Ok, maybe not quite that
exciting. You decide. Upon running the
game, you'll see the game grid, a
number pad (for when playing in 128
mode (not required as it'll run on the
64 as well)). A display on the right
shows keys you can use and what they
mean to the computer. All dots are
accessible from the 128's number pad,
except the A and C dots, you'll have
to use the A and C keys. Below the
number pad is a window that reds out
used grids, re-highlights them if and
when they become available again and
tells you who is playing. I just
called it the menu in the code (REMs).
This is a two player game. There
is no computer opponent. O goes first
to select a grid and counts as O's
turn. The selected grid will show a
red grid with the numbers and letters
you press on the computer to select
the dots. Players select dots until
the grid is filled. The last dot to
complete a square wins that player the
square.
Winning a round is determined
solely on who has the most
three-in-a-rows. If players have the
same number of Tic Tac Toes or none at
all, the cat wins and that grid
becomes available again. The win is
only for that grid and the players
symbol (X or O) takes the place of
that grid to make a mark on the big
grid.
The next play after a completed
grid is the selection of the next grid
and that counts as that players turn.
The game ends as soon as one Tic
Tac Toe is made on the big Tic Tac Toe
grid. The option to play again is
presented -- otherwise the game ends
If this seams confusing, playing
the game itself should clarify all.
Enjoy!
BC
noesis0@noesiscreation.net
DAVE'S RAVE: This is a great game of
strategy for the whole family -- and
certainly "family tested". I really
enjoyed Brian's "liner notes" which
bring images of a silent coder,
sitting at a rough-hewn picnic table
as early morning light plays through
the pine trees. Ahh -- such peace,
until the kids wake up!
Thanks, Brian, for the game and the
glimpse of your life.
DMM