* WalrusIRC

You need to have 5 posts and not be part of restricted usergroups in order to use the WalrusIRC embedded shoutbox. However, you can also access our IRC channel called #CodeWalrus via EFnet.

Author Topic: Greed  (Read 2227 times)

0 Members and 1 Guest are viewing this topic.

Online Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 223
  • Post Rating Ratio: +2/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
    • View Profile
  • Gender: Female
Greed
« on: May 05, 2015, 02:22:15 am »
Hello! I have ported greed (a CLI game for Linux created by Matthew Day) to the TI-Nspire CX. And it supports OS 3.1 and 3.6 this time :P



Instructions (slightly modified from the original):
The object of Greed is to erase as much of the screen as possible by moving around in a grid of numbers. Your location is signified by the 'P' symbol. When you move in a direction, you erase N number of grid squares in that direction, N being the first number in that direction. Your score reflects total number of squares eaten. Greed will not let you make a move that would have placed you off the grid of over a previously eaten square.

It *almost* perfectly mimics the original. It is missing three features:
-scoreboards (who cares!)
-loss detection (just press 5 to reset instead :P)
-possible move highlighting

There are always going to be a few bugs, of course

TODO:
only redraw the bits that need to be redrawn, in order to speed things up

Old post for posterity:
(click to show/hide)
« Last Edit: May 07, 2015, 03:50:12 am by Strontium »


  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES, LGv10, x220
FRC 4711 represent

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17817
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Greed
« Reply #1 on: May 06, 2015, 03:58:39 pm »
Ooh I like the idea. Too bad it's not 3.6 compatible, as it's the most popular Ndlessable OS. But hopefully someone ne can port it back.
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Online Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 223
  • Post Rating Ratio: +2/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
    • View Profile
  • Gender: Female
Re: Greed
« Reply #2 on: May 07, 2015, 12:18:20 am »
Once I rewrite it, it will support OS 3.1 and 3.6. I didn't try to support them at first because I was lazy.

This is why I didn't want to try to support older versions:


I have no clue why the last row doesn't get drawn.
« Last Edit: May 07, 2015, 12:26:50 am by Strontium »
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES, LGv10, x220
FRC 4711 represent

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17817
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Greed
« Reply #3 on: May 07, 2015, 12:44:58 am »
Oh that's weird. I wonder why that could happen? Maybe you could ask in the other subforum? Does that version use the same commands by the way?
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Online Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 223
  • Post Rating Ratio: +2/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
    • View Profile
  • Gender: Female
Re: Greed
« Reply #4 on: May 07, 2015, 12:48:29 am »
Oh that's weird. I wonder why that could happen? Maybe you could ask in the other subforum? Does that version use the same commands by the way?

The rendering works the exact same as before, the only change I needed to do was get rid of window.platform:setBackgroundColor() and replace it with a gc:fillRect().

I'm going to test if its a bug on the emulator, first. The emulator sure does have a lot of bugs.
Edit: Not the emulator ):

Edit 2: Its exactly the last two rows of numbers that don't get drawn.
« Last Edit: May 07, 2015, 12:54:14 am by Strontium »
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES, LGv10, x220
FRC 4711 represent

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17817
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Greed
« Reply #5 on: May 07, 2015, 01:59:15 am »
Have you managed to fix it yet? Also will it require multiple versions for each OS? Also which emulator do you use?
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Online Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 223
  • Post Rating Ratio: +2/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
    • View Profile
  • Gender: Female
Re: Greed
« Reply #6 on: May 07, 2015, 02:00:14 am »
1. I managed to fix it. Some rounding functions in Luas math module thing worked differently between API versions for some reason.
2. Nope!
3. The one in the TI Student Software.
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES, LGv10, x220
FRC 4711 represent

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17817
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Greed
« Reply #7 on: May 07, 2015, 02:01:49 am »
Awesome to hear. :D Also how is the speed?

As for TI Student software it's not an emulator but a simulator. It emulates the OS rather than the calc. As a result, like with the HP Prime simulator, some stuff will be different in it. (although it shouldn't happen)
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Online Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 223
  • Post Rating Ratio: +2/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
    • View Profile
  • Gender: Female
Re: Greed
« Reply #8 on: May 07, 2015, 02:04:46 am »
Ah. I always thought it was an emulator :P

And I havent tested it on calc yet, soo...

Let me finish the thing and then I'll test it.

-- some time later --

There is a bug I am completely lost on for the cause :P
There is a bug that allows you to escape the grid on the Y axis. I have no clue why it happens, but I've noticed its usually when a move will land you directly outside the grid. I assume this also applies to the X axis.

-- longer time later --

Haha! The grid was just getting rendered to high, and thus causing the top row to be hidden. Its fixed now :P

@DJ Omnimaga There was no problem with math.floor() :P
« Last Edit: May 07, 2015, 03:02:59 am by Strontium »
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES, LGv10, x220
FRC 4711 represent

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17817
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Greed
« Reply #9 on: May 07, 2015, 03:54:42 am »
Awesome to hear. I'll definitively give it a try when I have a chance. :)
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Offline Jonius7

  • New User
  • Join Date: May 2015
  • Location:
  • Posts: 7
  • Post Rating Ratio: +0/-0
    • View Profile
Re: Greed
« Reply #10 on: May 07, 2015, 11:47:39 pm »
Good to see you are making nice progress on a Lua project :)
My Released Projects (Updated 2015/05/08)
TI-nspire BASIC TI-nspire Hold 'em Health Bar Scissors Paper Rock
TI-nspire Lua Numstrat TI-nspire Hold 'em Lua Transport Chooser Secret Project (at v0.08.2 - 2015/05/08)

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17817
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Greed
« Reply #11 on: May 18, 2015, 08:30:06 pm »
So any estimate about when an OS 3.1 compatible version will come out? I tried the latest version on it and it tells me I need to upgrade. :(
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Online Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 223
  • Post Rating Ratio: +2/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
    • View Profile
  • Gender: Female
Re: Greed
« Reply #12 on: May 18, 2015, 08:36:46 pm »
Really? Thats strange. It uses apiLevel 1.0
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES, LGv10, x220
FRC 4711 represent

Online DJ Omnimaga

  • Omni founder & CW co-founder
  • CodeWalrus Staff
  • Super User
  • Forum Maintenance
  • Original 5
  • CodeWalrus Supporter
  • *
  • Topic Management
  • Join Date: Nov 2014
  • Location: Quebec, Canada
  • Posts: 17817
  • Post Rating Ratio: +89/-4
    • dj_omnimaga
    • DJOmnimaga.music
    • @DJOmnimaga
    • dj_omnimaga
    • @DJOmnimaga
    • /u/DJ_Omnimaga
    • DJOmnimaga
    • 112/11286
    • @djomnimaga
    • @DJOmnimaga
    • View Profile
    • DJ Omnimaga music store
  • Gender: Male
Re: Greed
« Reply #13 on: May 18, 2015, 10:37:49 pm »
Yeah I launched your program and I got told to upgrade. Unless you absolutely have to save the program using OS 3.1 or set its version to 3.1?You might need to ask how in a separate topic.
  • Calculators owned: TI-73, TI-80 (broken), TI-81, TI-82, TI-83, TI-83+ (broken), TI-83+ (broken), TI-83+SE (broken), TI-84+, TI-84+CSE, TI-84+CE, TI-85, TI-86, TI-89T, TI-92, TI-Nspire, TI-Nspire CX (semi-broken), HP 39gII, HP Prime, Casio fx-7000G, fx-7400G+, fx-7700GE, fx-9750G+, fx-9750GII, fx-9860G, cfx-9850G, FX-1.0+, fx-CG10, fx-CP400
  • Consoles, mobile devices and vintage computers owned: Samsung i5510, Nexus 5, Atari 2600, Lynx, SMS, Game Gear, Genesis, Dreamcast, NES, SNES, N64, GCN, Wii, Wii U, GBA, DS, 3DS, PS2, PS3, PS4, PSP, PSVita, XBox 360, XBOne

Bandcamp|Reverbnation|Facebook|Youtube|Twitter
Retired Omnimaga admin (2001-11) and editor (2012-14)
??? ??? ??? ???

Online Strontium

  • Full User
  • Join Date: Apr 2015
  • Location: CA
  • Posts: 223
  • Post Rating Ratio: +2/-2
  • hey
    • Unilunge
    • /u/thismarkstheend
    • Azmarok
    • View Profile
  • Gender: Female
Re: Greed
« Reply #14 on: May 18, 2015, 11:00:46 pm »
Yeah I launched your program and I got told to upgrade. Unless you absolutely have to save the program using OS 3.1 or set its version to 3.1?You might need to ask how in a separate topic.

Perhaps if I compile it into a .tns with Luna it may work, but I do not have the resources needed atm.
  • Calculators owned: TI Nspire CX, HP Prime
  • Consoles, mobile devices and vintage computers owned: NES, LGv10, x220
FRC 4711 represent

 


You can also use the following HTML or bulletin board code to share it on your page or forum signature!


Also do not forget to check our affiliates below.
Planet Casio TI-Planet Calc.news BroniesQC BosaikNet Velocity Games