🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: alt.comp.lang.learn.c-c++
Article #216

Re: TIC-TAC-TOE in C++ !

#216
From: Jon Watson
Date: Thu, 15 Jan 1998 00:00
18 lines
1281 bytes
Thanks for all the input into my silly tic-tac-toe game. I sure got a flood
of repsonses and some really good ideas.

I have decided to keep the approach I have, but to wrap a loop around it
that iterates twice. Once searching for X's and then changing the search
to O's. At least I'm not duplicating the code entirely :)

A lot of people brought the math approach to my attention (Using -1 to
represent
an X, 0 to represent a space and 1 to represent a ). That's a really good
idea,
but I am too far along in the coding to make those kinds of changes. 


Thanks for all the help!

Jon
Technical Details
Message-ID: <01bd217f$1ad6f460$564122cf@jwatson>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <01bd1f31$0a72dbc0$db4522cf@jwatson> <34BADED1.3AB196D7@ibm.net> <34BB00E2.365@online.no>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 114592,750a5b3b86788347
X-Google-Attributes: gid114592,public
X-Google-Thread: 109fba,750a5b3b86788347
X-Google-Attributes: gid109fba,public
X-Google-Thread: 10d4ba,750a5b3b86788347
X-Google-Attributes: gid10d4ba,public
From: "Jon Watson" <jwatson@freenet.calgary.ab.ca>
Subject: Re: TIC-TAC-TOE in C++ !
Date: 1998/01/15
Message-ID: <01bd217f$1ad6f460$564122cf@jwatson>
X-Deja-AN: 316084281
References: <01bd1f31$0a72dbc0$db4522cf@jwatson> <34BADED1.3AB196D7@ibm.net> <34BB00E2.365@online.no>
Organization: Telus Advanced Communications
Newsgroups: alt.comp.lang.learn.c-c++,att.lang.c++,comp.lang.c++