This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

TicTacToe public game (fixed by me)

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

TicTacToe public game (fixed by me)

Post by rosc2112 »

This is a version of Tic Tac Toe that is playable on channel. I did various fixes to it so that it actually works, draws the board correctly, etc. Thought some others might be interested. It does give me some ideas about how to do other boardgames for irc, so maybe eventually I'll have something more impressive than just a plain tictactoe game to offer :)

http://members.dandy.net/~fbn/tictactoe.tcl.txt
J
Justdabomb2
Voice
Posts: 37
Joined: Fri Sep 29, 2006 7:16 pm
Location: United States of America

Cool

Post by Justdabomb2 »

I haven't tested your fixes yet, but I am glad you did (it had many problems), I tried fixing it once, but it was too messed up for me. Thanks, I'll tell you what I think after I have some time to test it.
Yeah!
s
scope
Voice
Posts: 10
Joined: Sun Nov 05, 2006 12:09 am

Post by scope »

hey rosc

ive just tried this mate and it dosent seem to be working.
game starts fine and i type a square number IE .tic 5
the board then rewrites but no x or o in square 5 and another player can still choose square 5 with no "square is already occupied" message, but his x or o dosent appear either.
anyway i can fix this?
cheers mate.
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

It works on my copy, are you using the one posted in the url above? The original version in the tcl archive has the problems you mentioned.. I'll upload an update in any case, I don't think I made many changes between versions, except a little more formatting. Might also be a bug in the irc client with the color codes, I've noticed some clients act weird when certain characters appear right after a color code.. Lemme know if the new copy from the url above still has problems.
s
scope
Voice
Posts: 10
Joined: Sun Nov 05, 2006 12:09 am

Post by scope »

yeah it is from the url above mate.

just tried again and still the same (dont know if you have uploaded the newer version yet though)

ive tried it with x-chat and Mirc.

this is what happens

<OT-bot> 1 . | . | . 3
<OT-bot> -----------
<OT-bot> 4 . | . | . 6
<OT-bot> -----------
<OT-bot> 7 . | . | . 9
<OT-bot> It is O's turn.
<scope> .tic 5
<OT-bot> 1 . | . | . 3
<OT-bot> -----------
<OT-bot> 4 . | . | . 6
<OT-bot> -----------
<OT-bot> 7 . | . | . 9
<OT-bot> It's X's turn.
<scope> .tic 5
<OT-bot> 1 . | . | . 3
<OT-bot> -----------
<OT-bot> 4 . | . | . 6
<OT-bot> -----------
<OT-bot> 7 . | . | . 9
<OT-bot> It's O's turn.

it just dosent seem to input anything.
thanks
scope
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Ahh yep, i just checked, I guess I broke it.. I'll fix it and get a new copy up and post a reply =)
s
scope
Voice
Posts: 10
Joined: Sun Nov 05, 2006 12:09 am

Post by scope »

cheers mate.
much appreciated :wink:
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Fixed.. In my overzealous code-consolidation I renamed a var, and that's what broke the script :P
s
scope
Voice
Posts: 10
Joined: Sun Nov 05, 2006 12:09 am

Post by scope »

great stuff mate.
is the new script uploaded? as im still getting the same problem from that 1 on the above url.

best regards
scope
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Yes, it's been uploaded..Make sure you rehash when loading the new copy.
s
scope
Voice
Posts: 10
Joined: Sun Nov 05, 2006 12:09 am

Post by scope »

rosc2112 wrote:Yes, it's been uploaded..Make sure you rehash when loading the new copy.
lol i forgot too.

working fine now.

thanks once again mate.
Post Reply