Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Factorial-NX Switch: Difference between revisions

From GameBrew
(Created page with "{{Infobox Switch Homebrews |title=Factorial-NX |image=factorialnxswitch.png |description=A Nintendo Switch homebrew to calculate the factorial of a number. |author=Zamacian |lastupdated=2023/05/25 |type=Math |version=1.0.1 |license=Mixed |download=https://dlhb.gamebrew.org/switchhomebrews/factorialnxswitch.7z |website=https://github.com/Zamacian/Factorial-NX |source=https://github.com/Zamacian/Factorial-NX |donation= }} {{#seo: |title=Switch Homebrew Apps (Math) - GameBr...")
 
No edit summary
Line 51: Line 51:
{| style="width: 80%; margin-left:0em;"
{| style="width: 80%; margin-left:0em;"
|
|
https://dlhb.gamebrew.org/switchhomebrews/factorialnxswitch-01.png
https://dlhb.gamebrew.org/switchhomebrews/factorialnxswitch-01.jpg
|}
|}
What happens when you press A, B and X :
What happens when you press A, B and X :
{| style="width: 80%; margin-left:0em;"
{| style="width: 80%; margin-left:0em;"
|
|
https://dlhb.gamebrew.org/switchhomebrews/factorialnxswitch-02.png
https://dlhb.gamebrew.org/switchhomebrews/factorialnxswitch-02.jpg
|}
|}
Help menu :
Help menu :
{| style="width: 80%; margin-left:0em;"
{| style="width: 80%; margin-left:0em;"
|
|
https://dlhb.gamebrew.org/switchhomebrews/factorialnxswitch-03.png
https://dlhb.gamebrew.org/switchhomebrews/factorialnxswitch-03.jpg
|}
|}
==Changelog==  
==Changelog==  

Revision as of 01:51, 6 Haziran 2023

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: