User Tools

Site Tools


notes:discrete:fall2021:projects:pnf3

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
notes:discrete:fall2021:projects:pnf3 [2021/09/23 03:42] – Added upward versus downward display section smalik3notes:discrete:fall2021:projects:pnf3 [2021/09/23 06:09] (current) – Added reference for TIC-80 "missing" manual smalik3
Line 7: Line 7:
  
 =====Objective===== =====Objective=====
 +
 Using the TIC-80 fantasy console simulator on your pi, implement a program that visually displays a graph of the timed results of your various prime algorithms (brute force, brute force + optimizations, Sieve of Eratosthenes) so that one can more clearly see the difference in performance each algorithm offers. Using the TIC-80 fantasy console simulator on your pi, implement a program that visually displays a graph of the timed results of your various prime algorithms (brute force, brute force + optimizations, Sieve of Eratosthenes) so that one can more clearly see the difference in performance each algorithm offers.
  
Line 50: Line 51:
  
 While you may be able to scale and display data appropriately, displaying data upwards or downwards is a different story. Given how TIC-80 has its origin starting from the top left, one must manipulate the calculated points (from the scalers) in order to display downwards. While you may be able to scale and display data appropriately, displaying data upwards or downwards is a different story. Given how TIC-80 has its origin starting from the top left, one must manipulate the calculated points (from the scalers) in order to display downwards.
 +
 +In order for the bottom left to be treated as the origin (as we expect in a normal graph), the pointers must be subtracted from their respective maximum-possible value from the scaler.
 +
 +If we were to assume 50 is the maximum possible x-value, then we do "xScaler-point.x" in order to display upwards. A downward-leaning graph may be suitable if displayed in a detailed fashion, however it may not be ideal when wanting many different people to understand the data.
  
 =====References===== =====References=====
  
 https://en.wikipedia.org/wiki/Cartesian_coordinate_system https://en.wikipedia.org/wiki/Cartesian_coordinate_system
 +
 +https://hub.xpub.nl/sandbot/PrototypingTimes/tic80-manual.html
  
 https://github.com/nesbox/TIC-80/wiki https://github.com/nesbox/TIC-80/wiki
notes/discrete/fall2021/projects/pnf3.1632368521.txt.gz · Last modified: 2021/09/23 03:42 by smalik3