Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 1.7 KB

File metadata and controls

51 lines (35 loc) · 1.7 KB

image


d20 is a React Native and Expo application made as a demo for the mobile development learnathon track at Blueprint 2025.

File Structure

  • assets/ - All icons and static images are stored in this folder
  • components/ - Stores reusable React components which are not screens
  • pages/ - Stores all of the screens for the application (in this case just one)
  • app.json - Stores metadata for mobile application
  • package.json - Tracks dependencies used in application

Installation

Node.js

React Native and Expo uses Node.js as the underlying JavaScript runtime. Install Node.js version 23.8.0 from the official site.

Running

To run the application, first install dependencies then start it:

npm install
npx expo start

Exercises

  • Easy: Don't play dice roll sound effect when there are no dice.
  • Easy: Show the expected value of a roll given some set of dice.
  • Easy: Show the formula of dice in standard notation (e.g. 2d6+1d20).
  • Easy: Add another screen which allows you to customize settings (e.g. turn sound on/off, change color of dice, etc.).
  • Hard: Animate rolling dice using 3D animation.

License

d20 is licensed under MIT. You may use and distribute this source code as long as it follows the guidelines set by the license.