Factorial-NX Switch

From GameBrew
Revision as of 01:51, 6 June 2023 by HydeWing (talk | contribs)
Factorial-NX
Factorialnxswitch.png
General
AuthorZamacian
TypeMath
Version1.0.1
LicenseMixed
Last Updated2023/05/25
Links
Download
Website
Source

Factorial-NX is a Nintendo Switch homebrew application developed by Zamacian to calculate the factorial of a given number. The purpose of this project is for the developer to learn the basics of libnx, a library used for developing homebrew applications for the Nintendo Switch. The application itself may not have much practical use, but it serves as a learning exercise for the developer.

The application has a limitation that it can only calculate factorials up to 25 due to the highest number the Switch supports being 2^63.

Commands

To make things easier, let's just say that the number you want to factor is called Jeffrey

  • a to add 1 to Jeffrey
  • b to subtract 1 from Jeffrey
  • x or y to set Jeffrey to 0
  • any trigger (r/l/zr/zl) to clear the console
  • Minus (-) to factor Jeffrey
  • Plus (+) to exit the Homebrew
  • Everything else will show you the 'help' menu

What to know

The letter shown before the value of the number is what executed the action :

  • (A) means you added 1 by pressing A
  • (B) means you substracted 1 by pressing B
  • (X) or (Y) means you set the number to 0 by pressing X or Y

Feel free to copy and distribute it as much as you want without any legal restrictions.

Could be optimized but then the code would be very ugly.

App icon generated using Dall-E 2

Screenshots

Main look and operation :

factorialnxswitch-01.jpg

What happens when you press A, B and X :

factorialnxswitch-02.jpg

Help menu :

factorialnxswitch-03.jpg

Changelog

v1.0.1

  • Bug fixes and variable rename.

v1.0.0

  • The first release of the only Homebrew that calculates the factorial of a number in a couple of clicks!
  • Probably the only release I'll make except if there's an issue / I have new ideas.
  • I recommend starting with Homebrew development by trying to understand this one!
  • Thanks for downloading it.

External links

Advertising: