Everything posted by Tom
- osFisher
-
osMinnows
Hmm, was hoping for some more information, but unfortunately it hasn't given it. I'll have to ask around
-
C# Sorting a list by amount of occurring letters in a string
Yeah you're right in both aspects. I haven't visited C# since the start of last year so yeah its been fun
-
C# Sorting a list by amount of occurring letters in a string
Just ended up doing foreach(String w in words) { int points = 0; char[] c = w.ToCharArray(); foreach(char x in c) { points += pointsPerCharacter[x.ToString()]; } wordPoints.Add(w, points); } var topWords = wordPoints.OrderByDescending(pair => pair.Value); As long as it works for now, I'm satisfied. Leaving assignments to the last minute, I'm sure you know how it is
-
C# Sorting a list by amount of occurring letters in a string
Yep this always fuckin happens, think about it for hours, make a post and figure it out moments later.
-
C# Sorting a list by amount of occurring letters in a string
Aint in a thinking mood, been thinking all day. Say I have a Dictionairy<char, int> values, and each letter has an amount of points you score for each occurrence in a string A=1,B=2,C=3,D=4,E=5,F=6,G=7,H=8,I=9,J=10,K=11,L=12,M=13,N=14,O=15,P=16,Q=17,R=18,S=19,T=20,U=21,V=22,W=23,X=24,Y=25,Z=26 Imagine that being loaded into a the dictionary pretty much. The word OSBot would give 15 + 19 + 2 + 15 + 20 = 71 points So now I have a list of words, the words are completely random but they are real words. I want to sort this list by the amount of points I would obtain per word. The amount of points per letter arent always alphabetical, so A could be 30 points and Z could be 29 points, its random. If anyone knows of a good way to do this, or needs a better explanation, let me know. LINQ stuff is preferred. Edit: I'm onto something literally 1 minute after posting this thread. Calculate the points per word, then add it to a dictionary Word, Points, then sort that dictionary by the amount of points. Just delete this shit I was too tired for my own good
-
osMiner
Please give me any more information you can, such as location and other settings.
-
osFisher
Added No, sorry it won't cook.
-
osMinnows
Yes, open the OSBot logger in the top right before you run the script. This will give you an error and let me know why its not loading for you
- osMiner
- osMiner
- osFletcher
-
osMinnows
Anything in the logger you can give me?
-
osFisher
Hahahahahahahahahahahahaha Yeah, minnow support is working on the west side of the new pier thingo Added
-
osFisher
I'm surprised this hasn't even been reported yet, a lot of people use Ottos grotto. Just to clarify, you are using feathers as bait right? Just making sure as regular bait doesn't work there lol. Once confirmed, I'll get to testing the location myself and make sure a fix is out for you ASAP.
- osMiner
- osFisher
- osFletcher
- osMiner
-
osMiner
Added Added Added Not currently No plans as of yet, maybe soon though.
-
osMinnows
Can't check however Smart confirmed it, so I better look to see whats causing it Added trial
-
osMinnows
I'll look into it and give you a new trial if its resolved. Added
- osMiner
- osMinnows
-
osMiner
I thought I fixed it, however the issue got reported again so I'm gonna go have another look soon Added