Author Topic: [Lua] UNO (THE [card]game)  (Read 22702 times)

0 Members and 1 Guest are viewing this topic.

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: [Lua] UNO (THE [card]game)
« Reply #45 on: December 28, 2012, 03:24:42 pm »
IMO you should give it a more modern touch, thought :P
more something to this version then?


I love UNO!  This is great!
yay, finally one that still loves it :)

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: [Lua] UNO (THE [card]game)
« Reply #46 on: December 31, 2012, 05:37:38 am »
Ok, i completely reworked the game, so i would like someone to test it for me.
I have tried to remove all the bugs, and it seems to be working well, but i did not add any setting yet, so none of the proposed rules is already implemented.

Thanks

edit: i did not add any color setting yet, but the picking of the +2 and +4 cards should work
« Last Edit: December 31, 2012, 05:38:22 am by Nick »

Offline Adriweb

  • Editor
  • LV10 31337 u53r (Next: 2000)
  • **********
  • Posts: 1708
  • Rating: +229/-17
    • View Profile
    • TI-Planet.org
Re: [Lua] UNO (THE [card]game)
« Reply #47 on: December 31, 2012, 07:51:01 am »
Nice :D

Found some bugs :
- One random one at line 152 when I couldn't play but still press Enter on a card, and on the source code, the variable 'card' was nil. This also appeared when pressing enter during the card moving and it was supposed to be someone else's turn.
- Keep pressing enter (a number of times... :D) until it crashes : line 266 something is nil :   self.pack[#self.pack].isEvaluated = true
- line 348 somethign was nil for some reason when you press up or down right after starting a game :     if self.players[1].activeCard>#self.players[1].collection then
- Press [Esc] a number of times : nil value on line 303 :     local xDif = math.abs(self.movingCardPos[1]-self.defPos[1])

Other things :
- When in Full screen (I mean, computer view), the backgruond doesnt repeat in X.
- At some point (not sure how to reproduce), I couldn't [tab] to take a card?


Edit : all this was tested on TINCS 3.2
« Last Edit: December 31, 2012, 07:53:17 am by adriweb »
My calculator programs
TI-Planet.org co-admin.
TI-Nspire Lua programming : Tutorials  |  API Documentation

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Re: [Lua] UNO (THE [card]game)
« Reply #48 on: December 31, 2012, 08:23:25 am »
I'll try to find the [enter] bugs asap, as I don't really know what causes it

For the [tab] key I know, now you just have to [enter] without any card selected, then you should get a new card.

And for the background is a simple explanation: laziness. I'll make it good when I have some time (not today anymore).

Also: 1000th post :)

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: [Lua] UNO (THE [card]game)
« Reply #49 on: January 01, 2013, 04:50:48 pm »
How does this look on classic Nspires? Are the colors hard to distinguish?
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Re: [Lua] UNO (THE [card]game)
« Reply #50 on: January 01, 2013, 04:55:34 pm »
I actually never thought about that, i'll test it tomorrow, since o don't have my pc right now. I guess the only real problem might be the colors green and yellow, since they're quite the same..

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: [Lua] UNO (THE [card]game)
« Reply #51 on: January 01, 2013, 04:58:25 pm »
I can test it in a few minutes and report back. I'll edit my post with results.

EDIT: I can't tell if there's 3 or 4 colors distinguishable. I'd say it's not going to be easy to use on classics. :banghead: Oh well.
« Last Edit: January 01, 2013, 05:02:27 pm by TheNlightenedOne »
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Nick

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1166
  • Rating: +161/-3
  • You just got omnom'd
    • View Profile
    • Nick Steen
Re: Re: [Lua] UNO (THE [card]game)
« Reply #52 on: January 01, 2013, 05:04:17 pm »
Thanks for that info. Did you test it on a real nspire or tincs? I'll have to find something to that, any ideas?

Offline TheNlightenedOne

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 427
  • Rating: +16/-1
    • View Profile
Re: Re: Re: Re: [Lua] UNO (THE [card]game)
« Reply #53 on: January 01, 2013, 10:40:45 pm »
Thanks for that info. Did you test it on a real nspire or tincs? I'll have to find something to that, any ideas?
I tested it on a real Nspire.
"Eris" (Ndless 3.1)
"Keto" (Ndless 3.1)
"Luna" (AMS 3.10, HW4)
"Aurora" (2.55MP)

Offline Sorunome

  • Fox Fox Fox Fox Fox Fox Fox!
  • Support Staff
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 7920
  • Rating: +374/-13
  • Derpy Hooves
    • View Profile
    • My website! (You might lose the game)
Re: [Lua] UNO (THE [card]game)
« Reply #54 on: January 01, 2013, 10:58:47 pm »
IMO you should give it a more modern touch, thought :P
more something to this version then?
Oh yeah, that's looking a lot better IMO! :D

THE GAME
Also, check out my website
If OmnomIRC is screwed up, blame me!
Click here to give me an internet!