Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - cyanophycean314

Pages: 1 ... 3 4 [5] 6 7 ... 25
61
TI-Nspire / Re: Scramble/Boggle Lua
« on: July 24, 2012, 08:39:11 pm »
I use Notepad++ and nspire_emu!  :D I write my own C++ program to format the file.

3rik, I'll give your method a try. As long as you didn't get a memory error, that method will work.

I still wish that loadstring thing worked though, it would've been nice.  :(

EDIT: I get a memory error in nspire_emu :(, even using 3rik's shrunken dictionary. Oh, and 3rik's program also causes a memory error in nspire_emu D:

62
TI-Nspire / Re: Scramble/Boggle Lua
« on: July 23, 2012, 09:14:47 pm »
@3rik: Your solution is interesting, but I think memory constraints will occur... I'll give it a try if my current attempt fails.

Right now, I have around 1158 strings with format: words1 = 'aa;aah;aahed;' words2 = 'aahing;aardvark;'
The problem is that I want to go through the different strings. My current code is this:
Code: [Select]
function checkWord(word)
local letterkeys = {1,72,129,241,310,360,402,437,479,533,541,551,582,647,679,720,822,827,895,1019,1076,1112,1130,1152,1153,1155}
jstart = letterkeys[string.byte(word) - string.byte('a') + 1]
for i = jstart,1158 do
loadstring("abc = words"..i)
if string.find(abc,word) then
return true
end
end
return false
end

The letterkeys indexes a place for each letter, so the searching will go faster. Then it starts at that index and goes through each string and searches it using the string.find().

The loadstring thing doesn't work. It's purpose is to try and execute
Code: [Select]
abc = words12or
Code: [Select]
abc = words13depending on the value of i. This way I can avoid a big table that'll probably give me memory errors. It's basically like indexing without a big master table without a huge variable.

I'm not too familiar with loadstring, but it seems very powerful if it can be used like this.

63
TI-Nspire / Re: notepad for the nspire
« on: July 23, 2012, 08:59:42 pm »
CX compatibility?  :D That would be really nice.

64
Lua / Re: Pool Nspire
« on: July 23, 2012, 08:07:28 pm »
That looks really cool, especially the animation of hitting it. Great physics btw!  :D

65
TI-Nspire / Re: Scramble/Boggle Lua
« on: July 23, 2012, 09:07:34 am »
Thanks.  :)

What exactly do you mean when you said to use semicolons to split words? To select words, you press the tab button, and then use the numpad to move along the board, selecting letters as you go. Then you release tab, and that's your word.

The program checks if you've already used that word.  :)

Currently this is just a hard-coded grid, but I'm working on random generation (balancing it is kinda tricky...).

Edit: Woah, it's my 300th post.

66
News / Re: Contest 2012 Community Vote (Nspire/Prizm)
« on: July 23, 2012, 09:03:28 am »
Thanks DJ_O!  :)

I thought voting should've ended yesterday and the results would come out?  :P

67
Math and Science / Re: Red and Blue hats
« on: July 21, 2012, 10:02:21 am »
Hmmm.... maybe this has something to do with sacrificing to let other people know in front of you what they're wearing?  ???

68
TI-Nspire / Re: Scramble/Boggle Lua
« on: July 21, 2012, 09:59:42 am »
Thanks Loulou for the explanation and suggestions.  :)

I'll try splitting up my table into smaller ones, probably divided by letters. Or I could also use strings like you did.

I planned on using binary search to go through my list and find the word, but now I just realized that there were string search functions provided by Lua.

69
TI-Nspire / Re: kArmTI - TI-Nspire emulator with skin
« on: July 20, 2012, 09:47:49 pm »
Configuring nspire_emu for the first time took SO LONG!!  :w00t:

70
News / Re: A Game Boy Advance emulator for the TI-Nspire?
« on: July 19, 2012, 09:27:33 pm »
This looks amazing. Hope it can come through and unleash Advance Wars!

71
TI-Nspire / Re: On-calc Nspire emulators
« on: July 18, 2012, 05:05:33 pm »
SNES would be very awesome!  :D Then I could finally have the time to play its great RPGs: Final Fantasy, Secrets of Mana, Chrono Trigger

72
News / Re: Contest 2012 Community Vote (Nspire/Prizm)
« on: July 11, 2012, 08:53:29 pm »
Is there any approximation as to when voting ends and/or the results will come out?

73
News / Re: Major Restructuring Coming To Omnimaga
« on: July 10, 2012, 11:18:37 am »
Hmm... That's interesting...

74
News / Re: Major Restructuring Coming To Omnimaga
« on: July 10, 2012, 11:14:36 am »
Just wondering, what exactly did Sircmpwn do? I wasn't here for that I think.

75
TI-Nspire / Re: [Contest] The Squares Do Not Die
« on: July 10, 2012, 11:11:06 am »
Thanks. I spent a lot of time nailing down the little explosions, the bombs, the title shooting, and other little pretty things.  :)

Pages: 1 ... 3 4 [5] 6 7 ... 25