| View previous topic :: View next topic |
| Author |
Message |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Wed Oct 25, 2006 3:13 pm Post subject: TicTacToe public game (fixed by me) |
|
|
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 |
|
| Back to top |
|
 |
Justdabomb2 Voice
Joined: 29 Sep 2006 Posts: 37 Location: United States of America
|
Posted: Wed Oct 25, 2006 3:53 pm Post subject: Cool |
|
|
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 |
|
 |
scope Voice
Joined: 05 Nov 2006 Posts: 10
|
Posted: Fri Nov 17, 2006 6:09 pm Post subject: |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Nov 17, 2006 6:52 pm Post subject: |
|
|
| 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 |
|
 |
scope Voice
Joined: 05 Nov 2006 Posts: 10
|
Posted: Fri Nov 17, 2006 7:04 pm Post subject: |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Nov 17, 2006 7:16 pm Post subject: |
|
|
| 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 |
|
 |
scope Voice
Joined: 05 Nov 2006 Posts: 10
|
Posted: Fri Nov 17, 2006 7:20 pm Post subject: |
|
|
cheers mate.
much appreciated  |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Nov 17, 2006 7:36 pm Post subject: |
|
|
Fixed.. In my overzealous code-consolidation I renamed a var, and that's what broke the script  |
|
| Back to top |
|
 |
scope Voice
Joined: 05 Nov 2006 Posts: 10
|
Posted: Fri Nov 17, 2006 8:59 pm Post subject: |
|
|
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 |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Sat Nov 18, 2006 1:02 am Post subject: |
|
|
| Yes, it's been uploaded..Make sure you rehash when loading the new copy. |
|
| Back to top |
|
 |
scope Voice
Joined: 05 Nov 2006 Posts: 10
|
Posted: Sat Nov 18, 2006 7:54 am Post subject: |
|
|
| 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 |
|
 |
|