Author Topic: Scramble/Boggle Lua  (Read 22029 times)

0 Members and 1 Guest are viewing this topic.

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Scramble/Boggle Lua
« Reply #30 on: August 06, 2012, 11:29:07 am »
Ok. Here's a release! Please feel free to post any suggestions about this game!

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Scramble/Boggle Lua
« Reply #31 on: August 06, 2012, 03:39:12 pm »
ok, a quick review:

pressing '.' throws an error
making the word 'it' and 'me' throws an error (probably all words with two letters, line 211: attempt to perform arithmetic on a nil value)
i think you have to be too fast to make the words, maybe slow it down a little
after a couple of seconds you list of made words dissapears, but it does not return to the start or something, it just clears, which is kinda weird..

the timer is still at 1:30 :)

otherwise it's very nice :) i love it

Offline DJ Omnimaga

  • Clacualters are teh gr33t
  • CoT Emeritus
  • LV15 Omnimagician (Next: --)
  • *
  • Posts: 55943
  • Rating: +3154/-232
  • CodeWalrus founder & retired Omnimaga founder
    • View Profile
    • Dream of Omnimaga Music
Re: Scramble/Boggle Lua
« Reply #32 on: August 06, 2012, 04:33:59 pm »
Looks nice and fun. I remember playing this game 20 years ago in its original form and enjoyed it. I should hopefully enjoy the calc version as much.

Offline someone

  • LV3 Member (Next: 100)
  • ***
  • Posts: 49
  • Rating: +9/-0
    • View Profile
Re: Scramble/Boggle Lua
« Reply #33 on: August 06, 2012, 06:59:01 pm »
ok, a quick review:

pressing '.' throws an error
making the word 'it' and 'me' throws an error (probably all words with two letters, line 211: attempt to perform arithmetic on a nil value)
i think you have to be too fast to make the words, maybe slow it down a little
after a couple of seconds you list of made words disappears, but it does not return to the start or something, it just clears, which is kinda weird..

the timer is still at 1:30 :)

otherwise it's very nice :) i love it

You can change the time inside the function on.timer, just change the if timepassed > 30000 to 120000 & you'll have the 2 minutes you're supposed to have.

I also got an error, but it was on line 212, when it should be painting the path of the text selected, if I'm not mistaken.

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Scramble/Boggle Lua
« Reply #34 on: August 06, 2012, 07:02:02 pm »
ok, a quick review:

pressing '.' throws an error
Fixed

Quote
making the word 'it' and 'me' throws an error (probably all words with two letters, line 211: attempt to perform arithmetic on a nil value)
Really? Two letter words work for me? Are you testing on-calc, nspire_emu, or Student Software?

Quote
i think you have to be too fast to make the words, maybe slow it down a little
How do you suggest doing that, slowing down the timer? I could try that.

Quote
after a couple of seconds you list of made words dissapears, but it does not return to the start or something, it just clears, which is kinda weird..
That doesn't happen with me either...

Quote
the timer is still at 1:30 :)
Fixed.

Quote
otherwise it's very nice :) i love it
Looks nice and fun. I remember playing this game 20 years ago in its original form and enjoyed it. I should hopefully enjoy the calc version as much.
Thanks!

Offline 3rik

  • LV3 Member (Next: 100)
  • ***
  • Posts: 92
  • Rating: +8/-0
  • My TI-84+ SE
    • View Profile
Re: Scramble/Boggle Lua
« Reply #35 on: August 06, 2012, 09:15:52 pm »
I tried it out, but it kept giving errors around line 212. This is what the console says
Quote
212: attempt to index global 'letterkeys' (a nil value)
and
Quote
212: attempt to perform arithmetic on a nil value
It seems that letterkeys isn't defined anymore.
« Last Edit: August 06, 2012, 09:17:38 pm by 3rik »
Userbars

Offline cyanophycean314

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 363
  • Rating: +43/-1
  • It's You!
    • View Profile
Re: Scramble/Boggle Lua
« Reply #36 on: August 12, 2012, 07:17:12 pm »
Hmm, I've never ran into that error on my calculator, but I hope this new version fixes it?

Offline 3rik

  • LV3 Member (Next: 100)
  • ***
  • Posts: 92
  • Rating: +8/-0
  • My TI-84+ SE
    • View Profile
Re: Scramble/Boggle Lua
« Reply #37 on: August 13, 2012, 12:20:03 am »
Errors happen much less frequently now that letterkeys is defined.

There are still a couple errors.
If I press, release, and then hold tab while I push a letter key, I get an error on line 228. dx is a nil value.
If I rapidly jam the tab button (or get unlucky every once in a while), there's an error on line 212. word is an empty string. This causes an arithmetic error because string.byte is returning nothing.
Holding tab doesn't work as well on the student software as on the handheld. This isn't a big concern.

This game is really coming along. Good work so far!  :)
Userbars