<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/10906" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2005-11-30T22:37:26-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/10906</id>

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-11-30T22:37:26-04:00</updated>

		<published>2005-11-30T22:37:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57855#p57855</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57855#p57855"/>
		<title type="html"><![CDATA[Boggle Game Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57855#p57855"><![CDATA[
You are funny, you could have given me the link for that post on IRC, might have been easier for me to give you a help for your case <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Nov 30, 2005 10:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-11-30T02:36:07-04:00</updated>

		<published>2005-11-30T02:36:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57827#p57827</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57827#p57827"/>
		<title type="html"><![CDATA[Boggle Game Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57827#p57827"><![CDATA[
you could try to embed boggle's C code into your Tcl script using <a href="http://www.equi4.com/critcl.html" class="postlink">Critcl</a>, but I'd suggest you learn C and port boggle to Tcl; if you are ever to do anything serious in programming, you will need to know C anyway, so learning it would only be beneficial<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Wed Nov 30, 2005 2:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sarius]]></name></author>
		<updated>2005-11-30T00:46:32-04:00</updated>

		<published>2005-11-30T00:46:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57823#p57823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57823#p57823"/>
		<title type="html"><![CDATA[Boggle Game Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57823#p57823"><![CDATA[
The script is more or less done. However I can't release it as a standalone tcl script because it requires the Boggle Solver to work. But I'll be more than happy to share the code if anyone's interested.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6559">sarius</a> — Wed Nov 30, 2005 12:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sarius]]></name></author>
		<updated>2005-11-29T08:33:48-04:00</updated>

		<published>2005-11-29T08:33:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57805#p57805</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57805#p57805"/>
		<title type="html"><![CDATA[Boggle Game Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57805#p57805"><![CDATA[
Hi demond. Thanks for such a prompt reply.<br><br>It seems to be working without foreach. I just used \n.<br><br>Hmm... will update more when I finish the rest of the script <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6559">sarius</a> — Tue Nov 29, 2005 8:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-11-29T01:27:48-04:00</updated>

		<published>2005-11-29T01:27:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57792#p57792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57792#p57792"/>
		<title type="html"><![CDATA[Boggle Game Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57792#p57792"><![CDATA[
assuming that boggle reads board's data from standard input, you need to open a pipeline and write to it:<div class="codebox"><p>Code: </p><pre><code>set f [open "|boggle &gt;output.txt" w]foreach {k data} [array get die] {puts $f $data}close $f</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Tue Nov 29, 2005 1:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sarius]]></name></author>
		<updated>2005-11-28T22:41:18-04:00</updated>

		<published>2005-11-28T22:41:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57783#p57783</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57783#p57783"/>
		<title type="html"><![CDATA[Boggle Game Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57783#p57783"><![CDATA[
I tried searching in the TCL archive and also google but I can't one specifically written for tcl or eggdrop. Or maybe it has not been made public =P<br><br>Anyway, I'm in the midst of writing one for my own educational purpose, interest and for a bunch of friends in my irc channel.<br><br>Here's the gist of it<br><div class="codebox"><p>Code: </p><pre><code>set die(0) "lrytte"set die(1) "vthrwe"set die(2) "eghwne"set die(3) "seotis"set die(4) "anaeeg"set die(5) "idsytt"set die(6) "oattow"set die(7) "mtoicu"set die(8) "afpkfs"set die(9) "xlderi"set die(10) "hcpoas"set die(11) "ensieu"set die(12) "yldevr"set die(13) "znrnhl"set die(14) "obbaoj"set die(15) "nmihuq"proc generateboggle {bog} {global dieset letters ""set numbers ""set randnum ""while { [llength $letters] &lt; 16 } {set foundadupe 0set randnum [rand 16]set counter 0while {$counter &lt; [llength $numbers]} {set dupenumtocheck [lrange $numbers $counter $counter]if {$dupenumtocheck == $randnum} { set foundadupe 1}incr counter}if {$foundadupe == 0} {lappend numbers $randnumset randletter [string index $die($randnum) [rand 6]]lappend letters $randletter}}return $letters}proc Boggle {nick uhost hand chan args} {global bogset bogstring [generateboggle $bog]putquick "privmsg #Boggle :[join [split [lrange $bogstring 0 3] " "] "  "]"putquick "privmsg #Boggle :[join [split [lrange $bogstring 4 7] " "] "  "]"putquick "privmsg #Boggle :[join [split [lrange $bogstring 8 11] " "] "  "]"putquick "privmsg #Boggle :[join [split [lrange $bogstring 12 15] " "] "  "]"utimer 360 "EndofRound #Boggle"}</code></pre></div>This is basically just for generating the a 4x4 Boggle board. The next step (which I have not written) is to feed this board into a Boggle solver written in C. <br>The boggle solver will generate a list of all the possible words based on a dictionary text file.<br>The eggdrop will then match the answers typed in by the players against this list.<br>The Boggle solver was obtained from <a href="http://www.circlemud.org/~jelson/software/boggle.html" class="postlink">here</a><br><br>Ideally, I would like to convert the C code into tcl, but my knowledge in C is pretty limited. <br><br>Anyway, I would like to know how to use the egg to feed the letters into the Solver. To run the solver, I have to type ./boggle2 and press enter. Then I have to type the letters on the boggle board one by one, pressing enter after each one.<br><br>After all the letters have been entered, the solver will print the list of words on the console screen. I need to change it to print to a text file.<br><br>I think I should be able to manage the matching of answers to the text file after this. Hopefully!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"> <br><br>Any comments/advice/suggestions will be greatly appreciated!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6559">sarius</a> — Mon Nov 28, 2005 10:41 pm</p><hr />
]]></content>
	</entry>
	</feed>
