Author Topic: Axe Minesweeper  (Read 48172 times)

0 Members and 2 Guests are viewing this topic.

Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Axe Minesweeper
« Reply #120 on: September 13, 2010, 07:53:19 pm »
Ah yes, forgot about that D: Revised into

int(AfPart(A/B
Erm, 2.99999999999999999 != 3 != 2...

How about round(AfPart(A/B),0 :)

Edit:Ninja'd

Well, technically, 2.53 has modulus, but nobody seems to use it...
I'm sorry, but if TI thinks introducing a useful feature on a glitchy OS is a good idea... :P

That screenie looks wonderful!  Nice job! ;D
« Last Edit: September 13, 2010, 07:56:02 pm by ztrumpet »

Offline Builderboy

  • Physics Guru
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5673
  • Rating: +613/-9
  • Would you kindly?
    • View Profile
Re: Axe Minesweeper
« Reply #121 on: September 13, 2010, 07:56:32 pm »
OOps *facepalm* int doesnt round ;D

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe Minesweeper
« Reply #122 on: September 13, 2010, 07:58:28 pm »
And about 84+MP modulus, you probably shouldn't use it since it wouldn't work on every other calc/OS.




Offline ztrumpet

  • The Rarely Active One
  • CoT Emeritus
  • LV13 Extreme Addict (Next: 9001)
  • *
  • Posts: 5712
  • Rating: +364/-4
  • If you see this, send me a PM. Just for fun.
    • View Profile
Re: Axe Minesweeper
« Reply #123 on: September 13, 2010, 07:59:37 pm »
Oops *facepalm* int doesnt round ;D
lol :P

* ZTrumpet facepalms Builderboy. ;D

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Axe Minesweeper
« Reply #124 on: September 13, 2010, 08:01:42 pm »


Well, technically, 2.53 has modulus, but nobody seems to use it...
I'm sorry, but if TI thinks introducing a useful feature on a glitchy OS is a good idea... :P


Funny thing, actually.  Everybody says that its a glitchy OS, but I haven't found any bugs.
Unless you count slowness or some incompatibility as bugs.

And about 84+MP modulus, you probably shouldn't use it since it wouldn't work on every other calc/OS.
Good point.  Didn't think of that.
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe Minesweeper
« Reply #125 on: September 13, 2010, 08:03:44 pm »
OOps *facepalm* int doesnt round ;D

That's such an annoying glitch. Adds several bytes and at least half an hour of debugging because I keep forgetting about it.

EDIT: Michael_Lee, I think if you do enough nested expressions of a certain type (I don't remember what) it RAM clears (that's right, on the homescreen).

EDIT2: Actually, one of the more visible bugs is this: http://www.brandonw.net (go down to "fixing TI's bugs for them"). Basically, a miscode on TI's part makes xLIB useless.
« Last Edit: September 13, 2010, 08:10:04 pm by Deep Thought »




Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Axe Minesweeper
« Reply #126 on: September 13, 2010, 08:10:53 pm »
Wabbit gets updated pretty often, so you might want to update yours occasionally.

I'm still not really sure how to use modulus ??? But oh well, I can figure it out some other time :P

What do you mean? Modulus is just the remainder after division. For example, if you had an array of 3 rows of 3 entries per row, and X is the entry you're in (counting across each row first, then going down), X/3 is the row number, and X^3 is the column in that row.

I know what modulus is. But I don't know how to really use it or what I'd use it for. I never learned it in math, besides in like 4th grade when we just called it a remainder. I'd never heard the term "modulus" until Axe.

Also, about the screenshot. It looks great :)
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

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: Axe Minesweeper
« Reply #127 on: September 13, 2010, 08:31:31 pm »
Well, technically, 2.53 has modulus, but nobody seems to use it...
Well, if it was added in 2.53, using it would make your game incompatible with 2.43 and the 83+ :(

Also awesome screenshot!

Offline Madskillz

  • LV6 Super Member (Next: 500)
  • ******
  • Posts: 488
  • Rating: +32/-2
    • View Profile
Re: Axe Minesweeper
« Reply #128 on: September 13, 2010, 08:32:13 pm »
modulus is a very useful in programming and is found in many other languages as well. It can be used for many applications like finding if a number is prime or for finding a row or many other uses. If you continue on programming, even in other languages it would be good to learn and the syntax is incredibly simple, after all it's just like all the other operators.

Offline Hot_Dog

  • CoT Emeritus
  • LV12 Extreme Poster (Next: 5000)
  • *
  • Posts: 3006
  • Rating: +445/-10
    • View Profile
Re: Axe Minesweeper
« Reply #129 on: September 13, 2010, 08:33:39 pm »
Thanks for adding additional mines via scrolling!  That looks awesome!  By now the best Ti-83+ minesweeper game on the market. :D

Btw, what's the intended max for columns and rows?

Offline meishe91

  • Super Ninja
  • LV11 Super Veteran (Next: 3000)
  • ***********
  • Posts: 2946
  • Rating: +115/-11
    • View Profile
    • DeviantArt
Re: Axe Minesweeper
« Reply #130 on: September 13, 2010, 08:38:02 pm »
modulus is a very useful in programming and is found in many other languages as well. It can be used for many applications like finding if a number is prime or for finding a row or many other uses. If you continue on programming, even in other languages it would be good to learn and the syntax is incredibly simple, after all it's just like all the other operators.

Ya, I saw that it was used in C++ from a book I need to read.
Spoiler For Spoiler:



For the 51st time, that is not my card! (Magic Joke)

Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Axe Minesweeper
« Reply #131 on: September 13, 2010, 08:40:51 pm »
By now the best Ti-83+ minesweeper game on the market. :D

Thanks!  That makes me really happy.

Btw, what's the intended max for columns and rows?

Currently 18 by 18.  18 feels arbitary, but it's because of the size limitation on the free RAM space.  18x18 is the maximum I could stuff into L1.
But if I use appvars instead of L1 to store my (temporary) map data, I could extend it infinitely (Although it would be best to add a limit, for the sake of speed and sanity).
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe Minesweeper
« Reply #132 on: September 13, 2010, 08:42:25 pm »
TI should have added it to BASIC long ago. It's certainly more useful than the IS/DS functions :P

And back on topic, the updates look great!




Offline Michael_Lee

  • LV9 Veteran (Next: 1337)
  • *********
  • Posts: 1019
  • Rating: +124/-9
    • View Profile
Re: Axe Minesweeper
« Reply #133 on: September 13, 2010, 08:46:13 pm »
TI should have added it to BASIC long ago. It's certainly more useful than the IS/DS functions :P

What do those even do, anyways?  I've always wondered



Edit:  Over 50 posts!  I can play games now!
« Last Edit: September 13, 2010, 08:56:50 pm by Michael_Lee »
My website: Currently boring.

Projects:
Axe Interpreter
   > Core: Done
   > Memory: Need write code to add constants.
   > Graphics: Rewritten.  Needs to integrate sprites with constants.
   > IO: GetKey done.  Need to add mostly homescreen IO stuff.
Croquette:
   > Stomping bugs
   > Internet version: On hold until I can make my website less boring/broken.

Offline Deep Toaster

  • So much to do, so much time, so little motivation
  • Administrator
  • LV13 Extreme Addict (Next: 9001)
  • *************
  • Posts: 8217
  • Rating: +758/-15
    • View Profile
    • ClrHome
Re: Axe Minesweeper
« Reply #134 on: September 13, 2010, 08:50:10 pm »
Well, IS increments a variable by one, checks if it's greater than a value, and if it is, it skips the next statement :P Almost completely useless. The only time I've ever seen it used was when my math teacher used a combination of Goto/Lbls and IS to make a very crude type of For loop.