egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

TicTacToe public game (fixed by me)

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases
View previous topic :: View next topic  
Author Message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Wed Oct 25, 2006 3:13 pm    Post subject: TicTacToe public game (fixed by me) Reply with quote

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 Smile

http://members.dandy.net/~fbn/tictactoe.tcl.txt
Back to top
View user's profile Send private message
Justdabomb2
Voice


Joined: 29 Sep 2006
Posts: 37
Location: United States of America

PostPosted: Wed Oct 25, 2006 3:53 pm    Post subject: Cool Reply with quote

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!
Back to top
View user's profile Send private message Send e-mail AIM Address Yahoo Messenger MSN Messenger
scope
Voice


Joined: 05 Nov 2006
Posts: 10

PostPosted: Fri Nov 17, 2006 6:09 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Nov 17, 2006 6:52 pm    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
scope
Voice


Joined: 05 Nov 2006
Posts: 10

PostPosted: Fri Nov 17, 2006 7:04 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Nov 17, 2006 7:16 pm    Post subject: Reply with quote

Ahh yep, i just checked, I guess I broke it.. I'll fix it and get a new copy up and post a reply =)
Back to top
View user's profile Send private message
scope
Voice


Joined: 05 Nov 2006
Posts: 10

PostPosted: Fri Nov 17, 2006 7:20 pm    Post subject: Reply with quote

cheers mate.
much appreciated Wink
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Fri Nov 17, 2006 7:36 pm    Post subject: Reply with quote

Fixed.. In my overzealous code-consolidation I renamed a var, and that's what broke the script Razz
Back to top
View user's profile Send private message
scope
Voice


Joined: 05 Nov 2006
Posts: 10

PostPosted: Fri Nov 17, 2006 8:59 pm    Post subject: Reply with quote

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
Back to top
View user's profile Send private message
rosc2112
Revered One


Joined: 19 Feb 2006
Posts: 1454
Location: Northeast Pennsylvania

PostPosted: Sat Nov 18, 2006 1:02 am    Post subject: Reply with quote

Yes, it's been uploaded..Make sure you rehash when loading the new copy.
Back to top
View user's profile Send private message
scope
Voice


Joined: 05 Nov 2006
Posts: 10

PostPosted: Sat Nov 18, 2006 7:54 am    Post subject: Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Script Support & Releases All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber