Anagrams

Post gaming related scripts
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Anagrams

23 Jul 2017, 18:29

version 2.10
Anagrams v2.10.zip
(14.77 KiB) Downloaded 112 times
Helgef
Posts: 4311
Joined: 17 Jul 2016, 01:02
Contact:

Re: Anagrams

23 Jul 2017, 18:58

Perfect :thumbup:
littlegandhi1199
Posts: 85
Joined: 29 Aug 2016, 23:58

Re: Anagrams

25 Jul 2017, 11:43

wolf_II wrote:
Helgef wrote:If you feel that it is finished
I don't feel that the project is finished in a good way. More like: I am finished as I can not improve it further.
There still are some multi-word anagrams missing for sufficiently large inputs like eleven plus two.
There are plenty multi-word anagrams found and displayed, so that's a partial success.

More importantly: I feel like I should not be wasting any more of your precious time on this.
I can't thank you enough for your teaching, guidance and patience with me. And of course the time you spent. :beer:

I thoroughly enjoyed the experience. :dance: :superhappy: :wave:
So earlier you were saying that it was generating duplicates and you wanted to avoid that with your new version which supports multiple words?
Or did you notice that it only generates multiples in the scenario that the input has repeat letters?
Script Backups on every Execution :mrgreen:
https://www.autohotkey.com/boards/viewtopic.php?f=6&t=75767&p=328155#p328155

Scrabble Solver 4-15 letter word outputs ( :crazy: # of inputs)
https://www.autohotkey.com/boards/viewtopic.php?f=19&t=34285
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Anagrams

25 Jul 2017, 11:48

version 2.13
  • Contains Helgef's new Taskbar Ornaments https://autohotkey.com/boards/viewtopic ... 76#p162976
  • Taskbar Ornaments used and distributed with the author's permission.
  • hover over the script's taskbar button and notice the extra buttons at the bottom of the "Preview Popup": "Change word list" and "Save anagrams..."
Enjoy :D
Anagrams v2.13.zip
(19.14 KiB) Downloaded 111 times
Last edited by wolf_II on 02 Aug 2017, 15:34, edited 1 time in total.
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Anagrams

25 Jul 2017, 12:31

littlegandhi1199 wrote:So earlier you were saying that it was generating duplicates and you wanted to avoid that with your new version which supports multiple words?
Or did you notice that it only generates multiples in the scenario that the input has repeat letters?
If I understand the question correctly, we decided to regard eg. "Donald Duck" and "Duck Donald" as one being a permutation of the other and avoid those permutations in the main output. Later we implemented to show all permutations in a popup window, for which you can select each line ("sentence") you want to see the perms for, or all sentences. -> Right click on the ListView control to get a context menu and go from there.

In the case of duplicates for single-word anagrams: I think I/you/one always gets duplicates when there are repeated letters.
The reason for the new version to exist was, as far as I remember, to explore a can of worms.

The current state of "correctly" finding anagrams is satisfactory, we don't get duplicates for single-word anagrams, and no surplus perms for multi-word anagrams.
Satisfactory is less than perfect as I am missing expected output for certain input. E.g.:
(Notice the deliberate switch from "we" to "I" here, as the responsible piece of code was written by myself, and that's where the project is somewhat stuck).

Input = "the quick brown fox" does not produce the expected sentence "brown fox quick the".
Input = "brown fox quick the" does not produce the expected sentence "brown fox quick the".
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Anagrams

25 Jul 2017, 23:55

version 2.14
Anagrams v2.14.zip
(25.51 KiB) Downloaded 102 times
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Anagrams

27 Jul 2017, 04:31

version 2.15
Anagrams v2.15.zip
(25.73 KiB) Downloaded 104 times
Helgef
Posts: 4311
Joined: 17 Jul 2016, 01:02
Contact:

Re: Anagrams

28 Jul 2017, 17:55

Very nice with the help file :)

I would move the tbi.setOverlayIcon(tbi.hOverlayLoading) from end of setupTaskbar.ahk to top of the Make_DICT() function, for consistency.
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Anagrams

28 Jul 2017, 18:53

version 2.16
Anagrams v2.16.zip
(25.72 KiB) Downloaded 111 times
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Anagrams

02 Aug 2017, 15:45

version 2.17
Anagrams v2.17.zip
(25.78 KiB) Downloaded 135 times
Helgef
Posts: 4311
Joined: 17 Jul 2016, 01:02
Contact:

Re: Anagrams

02 Aug 2017, 17:44

@v2.17 :thumbup:
The EditBox and RadioBox functions are really nice. :)
Helgef
Posts: 4311
Joined: 17 Jul 2016, 01:02
Contact:

Re: Anagrams

15 Aug 2017, 05:48

Helgef wrote:

Code: Select all

GuiControl, hide, LBox
GuiControl,, LBox, % "|" (WordList ? WordList : "no anagrams for " String)
GuiControl, show, LBox
I just found that the manual gives the correct way to do it,

Code: Select all

GuiControl, -Redraw, LBox
GuiControl,, LBox, % "|" (WordList ? WordList : "no anagrams for " String)
GuiControl, +Redraw, LBox
:oops:
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Anagrams

15 Aug 2017, 09:20

Thanks! Looks similar to populating a ListView control. :thumbup:

I have experimented with more word lists, and I find that replacing the RadioBox with the ListBox function (both available from CustomBoxes: a collection of helper functions) has two benefits: Its style looks more conform with Anagrams and it does not run out of space for long lists.

(used in Include\setupTaskbar.ahk, line 65, relace RadioBox with ListBox, and have ListBox.ahk in one of the Lib folders, e.g.the local Anagrams\Lib)
Helgef
Posts: 4311
Joined: 17 Jul 2016, 01:02
Contact:

Re: Anagrams

15 Aug 2017, 10:26

ListBox
Yeah that looks nice :)
I was reminded how much fun this is, just spent ten minutes typing random words... :lol:
joash
Posts: 10
Joined: 29 Jan 2019, 11:12

Re: Anagrams

29 Jan 2019, 11:23

Good
Last edited by joash on 08 Jun 2019, 14:37, edited 3 times in total.
joash
Posts: 10
Joined: 29 Jan 2019, 11:12

Re: Anagrams

30 Jan 2019, 15:02

fixed..
Last edited by joash on 31 Jan 2019, 05:17, edited 1 time in total.
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Anagrams

31 Jan 2019, 04:28

Hi joash, welcome to the forum.

I do not understand why you post a request for general help here.
If you need help in general with how to write scripts to automate tasks => use the Ask for Help-section of the forum.
Good Luck.

For now, this might also help:
In case you are able to write your problem in a similar fashion like Carl, you might want to read this Ask for Help topic.
In Carl's case, all efforts were rendered useless by tragic circumstances. :(
wolf_II
Posts: 2688
Joined: 08 Feb 2015, 20:55

Re: Anagrams

31 Jan 2019, 06:27

Clarification: (in case there was a misunderstanding)
I do not mind seeing these questions in this thread, your removal of the posts was not what I wished for.

I merely offered an alternative that I would call suitable.
Please do not hesitate to ask again (here or anywhere), if you need more help.

Return to “Gaming”

Who is online

Users browsing this forum: No registered users and 14 guests