Old 05-11-2008, 02:48 PM   #21 (permalink)
Jr. Member
 
Alex's Avatar
 
Join Date: Feb 2008
Location: In front of my computer DUH!!!
Posts: 476
Alex is on a distinguished road
Default

YESH CALCULATOR still going to divide by 0
__________________




Alex is offline   Reply With Quote

Advertisement [Remove Advertisement]
Old 05-11-2008, 02:58 PM   #22 (permalink)
Super Zuner
 
saab900's Avatar
 
Join Date: Aug 2007
Location: Kickin it on the east coast
Posts: 1,600
saab900 has a spectacular aura aboutsaab900 has a spectacular aura about
Default

Nurta, you should program something really wierd to happen if you divide by 0, like flash 100 pics in 1 sec or make a wormhole thingy, that would be sweet!
__________________

http://www.zuneboards.com/forums/req...d-section.html
Quote:
Originally Posted by Volpe Sinatra
He speaks and types Alex, a language entirely separate from English.
Quote:
Originally Posted by ACE
Hey if you press up, up, down, down, left, right, left, right back, play, back, play, and then center....you're an idiot...




saab900 is offline   Reply With Quote
Old 05-11-2008, 03:30 PM   #23 (permalink)
Experienced Zuner
 
miceylulu's Avatar
 
Join Date: May 2008
Posts: 182
miceylulu is on a distinguished road
Default

This is good, but for the next release, I have some ideas:

A ^ button for doing exponents
Making a shortcut to = with like, play/pause or something
Have the back button be the delete or clear (when tapped, it doesn't exit the app)
Perhaps cos, sin, and tan?
( and ) (I mean the parentheses)
etc., etc.
Thank you for making this, but I don't think I will use it very often, because I have Alg. II and then Pre Calc next year, and this is really basic.




miceylulu is offline   Reply With Quote
Old 05-11-2008, 04:07 PM   #24 (permalink)
Support Team
Expert Zuner
 
Soccerfreak24's Avatar
 
Join Date: Nov 2007
Posts: 3,029
Soccerfreak24 is just really niceSoccerfreak24 is just really niceSoccerfreak24 is just really nice
Default

Which file do I open? This looks different than most of the other games.
Edit: Nm, forgot to extract.
__________________





Soccerfreak24 is offline   Reply With Quote
Old 05-11-2008, 04:12 PM   #25 (permalink)
Experienced Zuner
 
collver's Avatar
 
Join Date: Sep 2007
Location: some where left of the right
Posts: 121
collver is on a distinguished road
Send a message via MSN to collver
Default

have a graphic pop that call the user a noob, should they type in 3x5 or other insanely easy problems.
for example
__________________
Noob Patrol : Locked and Loaded




collver is offline   Reply With Quote
Old 05-11-2008, 04:24 PM   #26 (permalink)
Squirt
 
Join Date: Jul 2007
Posts: 14
mojo is on a distinguished road
Default

The new version is much better, well done!
In the future maybe you can decrease lag and the highlighted buttons.
I also agree that when someone tried to divide by zero a wormhole is created showing the credits.



mojo is offline   Reply With Quote
Old 05-11-2008, 04:53 PM   #27 (permalink)
God
α+ω
Retired Staff
Professional Spammer
 
Join Date: Jan 2007
Location: Look up
Posts: 7,802
God has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud of
Send a message via AIM to God Send a message via MSN to God Send a message via Yahoo to God Send a message via Skype™ to God
Awards Showcase
Biggest Abuser of Noobs Trogdor's Peasant Favorite zB Extremity 
Total Awards: 3
Default

Quote:
Originally Posted by miceylulu View Post
This is good, but for the next release, I have some ideas:

A ^ button for doing exponents
doable
Quote:
Making a shortcut to = with like, play/pause or something
it already is
Quote:
Have the back button be the delete or clear (when tapped, it doesn't exit the app)
yeah, jsut have to figure out how to do it exactly
Quote:
Perhaps cos, sin, and tan?
do-able, I'll probably add in a menus system (constants, trig, exponents, etc)
Quote:
( and ) (I mean the parentheses)
etc., etc.
That's a little more work, I'd have to put in order of ops and stuff

Although I already have a system for this in Java, C# isn't too different, maybe I can copy paste and modify significantly

Quote:
Originally Posted by mojo View Post
The new version is much better, well done!
In the future maybe you can decrease lag and the highlighted buttons.
I also agree that when someone tried to divide by zero a wormhole is created showing the credits.
the lag is actually programmed in, since at first you'd hit right and it would go right 5 times even if you do it fast. I'll play with the numbers some
__________________
Quote:
Originally Posted by sb
10:15 PM <Marshillboy> I almost never eat out

Nurta.net cures 29 known diseases



God is offline   Reply With Quote
Old 05-11-2008, 04:58 PM   #28 (permalink)
Administrator
Ultimate Zuner
 
Join Date: Jul 2006
Location: Fullerton, CA
Posts: 5,883
lpxxfaintxx is a name known to alllpxxfaintxx is a name known to alllpxxfaintxx is a name known to alllpxxfaintxx is a name known to all
Default

Quote:
Originally Posted by Nurta View Post
doable
yeah, jsut have to figure out how to do it exactly
Code:
  
            if (gps.Buttons.Back == ButtonState.Pressed)
                this.Exit();
__________________




lpxxfaintxx is offline   Reply With Quote
Old 05-11-2008, 05:01 PM   #29 (permalink)
God
α+ω
Retired Staff
Professional Spammer
 
Join Date: Jan 2007
Location: Look up
Posts: 7,802
God has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud of
Send a message via AIM to God Send a message via MSN to God Send a message via Yahoo to God Send a message via Skype™ to God
Awards Showcase
Biggest Abuser of Noobs Trogdor's Peasant Favorite zB Extremity 
Total Awards: 3
Default

Quote:
Originally Posted by lpxxfaintxx View Post
Code:
  
            if (gps.Buttons.Back == ButtonState.Pressed)
                this.Exit();
yeah, that says if the button is pressed exit, it doesn't say if button is held for X seconds exit but if for less than that, backspace

I'll probably just have it if button is pressed, start timer while(button is pressed) do nothing, on un pressing end timer, if timer.time>X do this, otherwise do this.

I knew I'd have to do it there, I'm not an idiot, just have to look up the easiest way to do a timer and stuff.
__________________
Quote:
Originally Posted by sb
10:15 PM <Marshillboy> I almost never eat out

Nurta.net cures 29 known diseases



God is offline   Reply With Quote
Old 05-11-2008, 06:47 PM   #30 (permalink)
Squirt
 
Join Date: Nov 2007
Posts: 18
hyperboy is on a distinguished road
Default

Thanks Nurta!
Rep for you!



hyperboy is offline   Reply With Quote
Old 05-11-2008, 07:16 PM   #31 (permalink)
Zuner
 
bjmiller121's Avatar
 
Join Date: May 2008
Posts: 74
bjmiller121 is on a distinguished road
Default

Here's a skin I made for the calculator. Download the two images below (right click and save as) and replace them with the two image files of the same name found in the content folder.

calc shell.png:


blank.png:
<--there is an image there

I can do other colors by request.
__________________

Last edited by bjmiller121; 05-11-2008 at 07:21 PM.




bjmiller121 is offline   Reply With Quote
Old 05-11-2008, 07:22 PM   #32 (permalink)
Zune Guardian
 
charmed61's Avatar
 
Join Date: Mar 2008
Location: The Gold Rush State!
Posts: 678
charmed61 is on a distinguished road
Default

can u make a blue one? thanks
__________________




charmed61 is offline   Reply With Quote
Old 05-11-2008, 08:07 PM   #33 (permalink)
Zuner
 
bjmiller121's Avatar
 
Join Date: May 2008
Posts: 74
bjmiller121 is on a distinguished road
Default

Here you go charmed:



you'll have to rename the file to "calc shell" and use the same blank.png as above.
__________________




bjmiller121 is offline   Reply With Quote
Old 05-11-2008, 08:27 PM   #34 (permalink)
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 976
LedZepp has a spectacular aura aboutLedZepp has a spectacular aura about
Default

Quote:
Originally Posted by Nurta View Post
the lag is actually programmed in, since at first you'd hit right and it would go right 5 times even if you do it fast. I'll play with the numbers some
Theres an easy way to have it only do the button action once.

Declare a boolean and set it to false
Code:
bool i = false;
then when you have this code
Code:
if (GamePad.GetState(PlayerIndex.One).DPad.**** == buttonState.Pressed)
change it to
Code:
if (!i && GamePad.GetState(PlayerIndex.One).DPad.**** == buttonState.Pressed)
Then in the same block of code add
Code:
i = true;
and lastly make another block of code for
Code:
if (GamePad.GetState(PlayerIndex.One).DPad.**** == buttonState.Released)
and add this in that block of code
Code:
i = false;




LedZepp is offline   Reply With Quote
Old 05-11-2008, 08:28 PM   #35 (permalink)
God
α+ω
Retired Staff
Professional Spammer
 
Join Date: Jan 2007
Location: Look up
Posts: 7,802
God has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud ofGod has much to be proud of
Send a message via AIM to God Send a message via MSN to God Send a message via Yahoo to God Send a message via Skype™ to God
Awards Showcase
Biggest Abuser of Noobs Trogdor's Peasant Favorite zB Extremity 
Total Awards: 3
Default

That's clever, good idea.
__________________
Quote:
Originally Posted by sb
10:15 PM <Marshillboy> I almost never eat out

Nurta.net cures 29 known diseases



God is offline   Reply With Quote
Old 05-11-2008, 08:32 PM   #36 (permalink)
Experienced Member
 
LedZepp's Avatar
 
Join Date: Mar 2007
Posts: 976
LedZepp has a spectacular aura aboutLedZepp has a spectacular aura about
Default

Yea im in the process of making solitaire and i was stumped for an hour trying to figure out how to only make it move 1 space instead of a random number




LedZepp is offline   Reply With Quote
Old 05-11-2008, 09:50 PM   #37 (permalink)
Zuner
 
egamerhdk's Avatar
 
Join Date: May 2008
Posts: 73
egamerhdk is on a distinguished road
Send a message via AIM to egamerhdk
Default

So far so good...




egamerhdk is offline   Reply With Quote
Old 05-11-2008, 10:22 PM   #38 (permalink)
Zewbie
 
Join Date: May 2008
Posts: 1
luinfana is on a distinguished road
Default

Here's another skin...



(save as "calc shell.png")



(save as "GameThumbnail.png")

<- save as "blank.png"

Enjoy!



luinfana is offline   Reply With Quote
Old 05-11-2008, 10:39 PM   #39 (permalink)
Zuner
 
Join Date: May 2008
Posts: 52
retrac1324 is on a distinguished road
Default

Thanks for the fully functional app, and thanks luinfana for the nice backgrounds (the black one is especially nice)



retrac1324 is offline   Reply With Quote
Old 05-12-2008, 04:03 AM   #40 (permalink)
Zewbie
 
Join Date: May 2008
Posts: 1
templar is on a distinguished road
Default

if your looking for an easy way to make a calculator the best advice i can give is take a look at the shunting yard algorithm (check wiki)

this is a infix to postfix converter (which should be about 30 lines of code if done properly with functions), its just a matter of setting up operand precdence as well having good knowledge on stacks and knowning when to push and when to pop. once you have it in postfix, a simple postfix parser can easily compute the equation. the beauty with SYA algorithm once you convert, order of operators is basically removed and so are brackets,

cheers
-templar-



templar is offline   Reply With Quote
Reply

Bookmarks

Thread Tools